nc -zv 192.168.1.1 22

Category: Networking

nc -zv 192.168.1.1 22

Test TCP connectivity to a specific port

netcat with -z (zero I/O mode) and -v (verbose) simply tests whether a port is reachable without sending data. The fastest way to check 'can this server reach port 22 on that host?' without installing anything extra.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.