OpenVZ Forum


Home » General » Support » SSH to VE is very slow
SSH to VE is very slow [message #24994] Wed, 12 December 2007 19:45 Go to next message
parf is currently offline  parf
Messages: 11
Registered: December 2007
Location: USA
Junior Member
SSH to VE takes 11 seconds to complete
# date; ssh hdb date
Wed Dec 12 14:35:16 EST 2007
Wed Dec 12 14:35:27 EST 2007

computer have 0 load.
# uptime
14:35:36 up 16 min, 3 users, load average: 0.00, 0.00, 0.00

Timeout occurs in

ssh -v ....
debug1: Trying private key: /root/.ssh/id_dsa
debug1: read PEM private key done: type DSA
--- 12 sec timout
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.

PS:
# ping hdb
PING hdb (10.1.148.120) 56(84) bytes of data.
64 bytes from hdb.xxx (10.1.148.120): icmp_seq=1 ttl=64 time=0.050 ms

# traceroute hdb
traceroute to hdb (10.1.148.120), 30 hops max, 40 byte packets
1 hdb.xxx (10.1.148.120) 0.057 ms 0.013 ms 0.011 ms

PPS:
vzctl enter works instantly

PPPS: no any messages in log files

Host is Centos5 VE is Centos5
Re: SSH to VE is very slow [message #24995 is a reply to message #24994] Wed, 12 December 2007 19:58 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
This looks like a PTR DNS search that is timing out.

Every time you do an SSH connection, sshd tries to find the PTR (also known as reverse DNS record) for this IP. If it can't find it, or can't find a server that knows it, it can cause such a delay.

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: SSH to VE is very slow [message #24998 is a reply to message #24995] Wed, 12 December 2007 20:23 Go to previous messageGo to next message
parf is currently offline  parf
Messages: 11
Registered: December 2007
Location: USA
Junior Member
ugob wrote on Wed, 12 December 2007 14:58

This looks like a PTR DNS search that is timing out.

Every time you do an SSH connection, sshd tries to find the PTR (also known as reverse DNS record) for this IP. If it can't find it, or can't find a server that knows it, it can cause such a delay.

Ugo


yes, this was a problem,
i fixed it when i removed checkdns from ssh_config

2 Admins:
please delete this topic
**SOLVED** Re: SSH to VE is very slow [message #24999 is a reply to message #24998] Wed, 12 December 2007 20:25 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
No need to delete, I just put **Solved** in the Title. This can be interesting for someone else...

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: **SOLVED** Re: SSH to VE is very slow [message #25039 is a reply to message #24999] Thu, 13 December 2007 14:23 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

More to say, since now you know about it, you can document it on wiki.openvz.org Wink

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* Time Zone in VE
Next Topic: name based hosting
Goto Forum:
  


Current Time: Mon Sep 16 21:02:52 GMT 2024

Total time taken to generate the page: 0.08211 seconds