Safe to expose

Port 22 — SSH / SFTP

Encrypted remote shell access and secure file transfer. The main administrative door to a Linux server.

Port
22
Service
SSH / SFTP
Protocol
TCP

Security guidance

Open is normal, but use key-only authentication, disable root login, and consider fail2ban. Moving it to a non-standard port reduces log noise, not real risk.

Test port 22 yourself

From your own machine, against any host (swap in your domain):

macOS / Linux — netcat

nc -vz example.com 22

Any OS — nmap

nmap -p 22 example.com

Windows — PowerShell

Test-NetConnection example.com -Port 22

open = a service answered on port 22; closed = the host replied but nothing is listening; filtered = a firewall silently dropped the probe. These test from your network — our port checker tests from the outside, the view that matters for security.

Is port 22 open on your server?

Test it from outside your network — the only view that matters.

Check port 22