Port 22 — SSH
Port 22 (TCP) is used by SSH. Secure Shell — encrypted remote login, file transfer (SFTP/SCP) and tunnelling.
Port 22 at a glance
| Property | Value |
|---|---|
| Port number | 22 |
| Transport | TCP |
| Service | SSH |
| Category | Well-known port |
What it is used for
Secure Shell — encrypted remote login, file transfer (SFTP/SCP) and tunnelling.
Security considerations
Secure when key-based auth and strong ciphers are used. A top brute-force target — disable password login.
See our full TCP/UDP port reference and learn how firewalls filter ports in the CyberOps course.
Frequently asked questions
What is port 22 used for?
Port 22 (TCP) is used by SSH. Secure Shell — encrypted remote login, file transfer (SFTP/SCP) and tunnelling.
Is port 22 TCP or UDP?
Port 22 uses TCP.
Is it safe to open port 22?
Secure when key-based auth and strong ciphers are used. A top brute-force target — disable password login.
Related
Learn networking hands-on
Master IP addressing, subnetting and Cisco configuration on real lab devices with placement support at Attila Technologies, Ahmedabad.