SSH to SSH slow
I have noticed that sometimes when you ssh into one system, and then try to ssh into another system from there, it hangs for a while during the login.
ssh hostname
If you TELNET into the first server and then SSH from there, it is MUCH faster!
using ssh -v hostname showed me that it was hanging when trying to set up X11 forwarding, so a quick fix was like this:
ssh -x hostname
And it should go much faster. This is especially noticeable in for loops like this:
for i in $(cat SystemList);do ssh -x $i ‘hostname;cat /etc/passwd’ >> output;done;less output;rm output
