Lofland bLOG

SSH to SSH slow

Filed under Unix Notes on Monday, April 23rd, 2007 @ 11:37am by Christen

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

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress