How to test the round trip latency of an SSH connection
I would like to test the latency of an SSH connection on a server behind a firewall for a few reasons:
- I want to know the delay that is being added to all of my keystrokes
-
<ssh time> - <ping time> = <ssh latency overhead>
would be nice to know.
I'm thinking something like:
ssh 'user@somehost' "ping parent"
Solution 1:
So after googling for ssh round trip time instead of ping time, I found that the github project sshping does exactly what I want.
https://github.com/spook/sshping
The following serverfault question helped out https://serverfault.com/questions/807910/measure-total-latency-of-ssh-session