Port

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

PropertyValue
Port number22
TransportTCP
ServiceSSH
CategoryWell-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.

Learn networking hands-on

Master IP addressing, subnetting and Cisco configuration on real lab devices with placement support at Attila Technologies, Ahmedabad.

Start your networking career with Attila Technologies

Hands-on Cisco training, real lab devices and placement support in Ahmedabad.