[svlug] ssh connecting very slowly
Scott.Hess at gmail.com
Fri Aug 13 12:13:49 PDT 2004
On Fri, 13 Aug 2004 11:50:31 -0700, Jeremy Hunt
<jh-svlug at frostypenguin.net> wrote:
> Rick Schultz wrote:
> >But before you do that, try running ssh with '-v -v' and see where it's
> >at when the delay occurs. You may also want to try the '-1' option to
> >see if it's timing out on a v2 attempt before reverting to v1.
> Probably would be a good idea to also run sshd with '-ddd' (or just one
> or two d's for less verbose output) as well.
> If you have console access to the box it's no problem but if you only
> have ssh access to the box, you can just kill the one sshd process that
> has a parent id of '1'. As long as that's the only one you kill it
> shouldn't kick you out of the box. Then do the 'sshd -ddd' and open
> another ssh session with the '-v' options as Rick suggested. When sshd
> is run in debug mode it will only listen for one client connection and
> then exit.
It's easier to just change the port it listens on. 'sshd -vvv -p2022'
on the server, and 'ssh -vvv -p2022' on the client. Alternately,
start a new sshd on a new port, connect to it, and restart the primary
sshd on the default port. If you're concerned about something weird
If your firewall blocks stuff, maybe use port 80 (http) or 25 (smtp)
as your alternate, those are usually open.
More information about the svlug