Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Find the real problem instead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find the real problem instead
Authored by: britrock on Dec 28, '07 09:45:16AM

If you are having slow ssh connections it makes a LOT more sense to track down the actual problem instead. The solution posted is just a band aid.

To debug an ssh connection simply add the '-v' option. For instance, if the command you would normally run is 'ssh foo@bar.com' then change it to 'ssh -v foo@bar.com'.

You will get a great deal of debug printed on the screen, and most of it won't make sense, but by look at the last bit that is printed before the delay you'll get a good idea what the cause of the problem is. At that point you'll want to read through the man pages for sshd_config, and for ssh_config and hopefully you'll be able to find a setting to fix the problem.



[ Reply to This | # ]
Find the real problem instead
Authored by: cran on Jan 06, '08 07:40:07AM
If you are having slow ssh connections it makes a LOT more sense to track down the actual problem instead. The solution posted is just a band aid.
You are right, it is better to find and fix the problem. But sometimes it just saves a lot of time to work around instead of fixing. I tried to make this clear by putting the word "workaround" in the title instead of "fix".

[ Reply to This | # ]