Port 22: SSH

Port 22 is SSH, the encrypted remote command line used to manage servers and devices.

At a glance
Port
22 / TCP
Service
SSH
Also called
secure shell, sftp, scp
If exposed
Medium risk if exposed

What runs on port 22

OpenSSH and similar servers listen on TCP 22 to give a remote shell, file transfer (SFTP, SCP) and tunnelling. It replaced telnet in the late 1990s because it encrypts everything, including the password. It is the standard way to administer Linux servers, network gear and cloud machines.

On a home network

NAS boxes (Synology, QNAP), Raspberry Pis, OpenWrt and MikroTik routers, Home Assistant with the SSH add-on, and Macs with Remote Login turned on can all listen on 22. Most consumer routers, phones and TVs do not.

If port 22 is reachable from the internet

SSH on the internet is normal for servers and reasonably safe when it uses key-based login and is kept up to date. It is also one of the most brute-forced services on the internet: any address with 22 open receives password guesses within minutes, around the clock. On a home NAS or Pi with a password login, exposure is a real risk; if you need remote access, a VPN is usually the better answer.

How to check whether it is open on your network

Check your router's port forwarding list for any rule pointing at 22, and look at your NAS or Pi settings for SSH. RECON's Port Scan will show which devices on your LAN have 22 open.

Devices that open port 22

Raspberry PiSSH, often switched on through Raspberry Pi Imager for remote accessUbiquitiSSH on UniFi and EdgeMAX devices, used for adoption and management

Related ports

All portsPort lookupSubnet calculator

Other tools

IPv4 · IPv6 · CIDR
Subnet calculator
Network, broadcast, host range and wildcard for any CIDR, IPv4 or IPv6. Turns an IP range into the CIDR blocks that cover it.
OUI · MA-L · MA-M · MA-S
MAC vendor lookup
Which company made the device behind a hardware address, from the IEEE registry. Spots randomised private addresses too.
X.509 · PKCS#10 · PEM · DER
Certificate and CSR decoder
Subject, issuer, validity, key, SANs, key usage and fingerprints from a certificate or signing request. Parsed in your browser.
VPN · resolver · privacy
DNS leak test
Which DNS servers actually answer your lookups on this connection, who owns them, and whether your VPN or private DNS is really being used.
Cloudflare · Google · Quad9 · 8 resolvers
DNS benchmark
Times eight public resolvers from where you are, over DNS-over-HTTPS, and ranks them by median response.
TCP · UDP · what is this port
Port lookup
What a port number is used for, which home devices open it, and whether it matters that it is reachable.
Certificate Transparency · CT logs
Subdomain finder
Every subdomain on a currently valid TLS certificate, from the public Certificate Transparency logs, with the ones worth a second look flagged.
IP to ASN · BGP · IP ranges
ASN lookup
Which network routes an IP address, who holds an AS number, and every IPv4 and IPv6 range it announces. Live BGP data from RIPEstat.
HTTP archive
HAR analyzer
Open a HAR file and see what a page really loaded: third parties, slowest requests, insecure cookies, servers that leak versions.
IIS · nginx · Apache · access logs
Log analyzer
Check IIS, nginx and Apache access logs for signs of exploitation, with a verdict per CVE and every finding traced to its line. Read in your browser, never uploaded.
Public IP · fingerprint
What is my IP
Your public address and everything else your browser hands to every site you visit, without asking.