StanTastic Asked: 2016-12-23 02:24:31 +0800 CST2016-12-23 02:24:31 +0800 CST 2016-12-23 02:24:31 +0800 CST Measure RTT for SSH 772 I'm trying to figure out a way to measure RTT for SSH connection, but my google-fu is too weak (perhaps I'm asking wrong questions?). Something akin to ping , for cases where SSH works, but ICMP does not. ssh ping 1 Answers Voted Jason Martin 2016-12-23T08:00:38+08:002016-12-23T08:00:38+08:00 HPing is a tool that performs the equivalent of ping but does so over TCP, so works around networks where ICMP is blocked. http://backdrift.org/tcp-ping-ping-tcp-port and http://www.hping.org/ describe it in more detail. From the former: $ hping -S -p 80 google.com HPING google.com (eth0 66.249.92.104): S set, 40 headers + 0 data bytes len=44 ip=66.249.92.104 ttl=47 id=10442 sport=80 flags=SA seq=0 win=5720 rtt=97.7 ms len=44 ip=66.249.92.104 ttl=47 id=40838 sport=80 flags=SA seq=1 win=5720 rtt=97.7 ms len=44 ip=66.249.92.104 ttl=47 id=64607 sport=80 flags=SA seq=2 win=5720 rtt=97.7 ms len=44 ip=66.249.92.104 ttl=47 id=10443 sport=80 flags=SA seq=3 win=5720 rtt=97.7 ms In your case you'd use -p 22 to target SSH.
HPing is a tool that performs the equivalent of ping but does so over TCP, so works around networks where ICMP is blocked.
http://backdrift.org/tcp-ping-ping-tcp-port and http://www.hping.org/ describe it in more detail.
From the former:
In your case you'd use -p 22 to target SSH.