Secure remote access and file transfer. Standard for Linux/Unix administration. Standard TCP port, used by the SSH / SFTP service.
Free online tool — ping & port checker: instant results, no signup.
Port 22 is reserved by IANA for the SSH / SFTP service. Secure remote access and file transfer. Standard for Linux/Unix administration.
To find out if port 22 is open on your host (or a third-party's — for diagnostics), use our port checker. Enter a domain and a port number — results arrive in 1-2 seconds.
An open port is a potential attack vector. General rules:
Port 22 serves as the default communication channel for both SSH (Secure Shell) and SFTP (SSH File Transfer Protocol). While SSH is primarily used for secure remote administration, SFTP focuses on secure file transfers. Both protocols leverage cryptographic techniques to ensure confidentiality and integrity during data transmission.
SSH provides a secure channel over an unsecured network by implementing strong encryption algorithms, which protect against eavesdropping and interception. It allows users to log into remote machines, execute commands, and manage files with secure terminal access. SFTP, on the other hand, extends SSH's capabilities, allowing users to transfer files securely between a client and server.
Both protocols utilize a client-server architecture. The SSH client initiates a connection to the SSH server on port 22, establishing a secure session. Once authenticated, users can perform various tasks, including remote command execution and secure file transfers.
In summary, SSH and SFTP are critical for maintaining security in remote access and file management, making port 22 a vital component in network configurations.
To ensure that port 22 is open and accessible, system administrators can use various tools and commands. Here are some effective methods to check the status of port 22 on a server:
telnet your.server.ip 22If the connection is successful, you will see a message indicating that you are connected to the server. If it fails, you will receive an error message.
nc -zv your.server.ip 22The output will indicate whether the port is open (success) or closed (failure).
nmap -p 22 your.server.ipThe result will show whether port 22 is open or filtered.
These commands are essential for troubleshooting connectivity issues and ensuring that your SSH/SFTP services are operational.
While port 22 is the default for SSH, it's essential to implement security measures to protect against unauthorized access. Here are some configuration options to enhance SSH security:
sudo nano /etc/ssh/sshd_configModify the line:
Port 22to a different port, e.g.,
Port 2222After saving the changes, restart the SSH service:
sudo systemctl restart sshdPermitRootLogin noInstead, use a standard user account for SSH access and elevate privileges using sudo.
ssh-keygen -t rsaCopy the public key to the server:
ssh-copy-id user@your.server.ipThen, disable password authentication:
PasswordAuthentication noBy applying these configurations, administrators can significantly strengthen the security of SSH connections on port 22.
Every open port is an attacker's entry point. If the service is not used (or uses a different port), close it to minimise attack surface.
From a local machine: <code>nc -zv hostname 22</code> or <code>telnet hostname 22</code>. The online checker is simpler — from different IPs, one click.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.