On May 9, 2009, at 14:20, Pablo Sanchez wrote:

[ Comments below, in line ]

On Saturday 09 May 2009 at 2:55 pm, Paul Gilmartin penned
about "[vbox-users] Slow ssh after ssh-keygen"

Suddenly (post-hoc reasoning?) ssh to the guest takes
a remarkably consistent 40.5 seconds.

It may be DNS resolution on the host - which can be disabled (see `man
sshd_config' -- `UseDNS')

Using 127.0.0.1 instead of "localhost" makes little difference.
How long should it take to resolve localhost, anyway?

The way I troubleshoot `ssh' issues is by increasing the verbosity
using multiple `-v' settings.

Good idea.

505 $ time ssh -v -v -v -Y -p 2222 127.0.0.1 ls -ld .
    ...
debug1: read PEM private key done: type RSA

(long pause)

debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting [email protected]
debug1: Entering interactive session.

(long pause)

debug2: callback start
    ...
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
drwxr-xr-x 35 paulgilm staff 57 2009-05-09 09:11 . ### output from "ls" ###
debug2: channel 0: rcvd eof
    ...
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1)

debug3: channel 0: close_fds r -1 w -1 e 7 c -1
Transferred: sent 2608, received 2080 bytes, in 20.2 seconds
Bytes per second: sent 129.2, received 103.1
debug1: Exit status 0

real    0m40.477s
user    0m0.090s
sys     0m0.033s
506 $

What should I be looking for?

Thanks,
gil


_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to