>>>>Убей ssh ключи в .ssh
>>>Убил. Результат:
>>> Соединение получено, 41 сек. задержки.
>>>Т.е. то же...
>>млжет не в тему -- но неплохо было бы проверить dns --
>>обычным клиентом быстро коннектиться???
Я сразу IP даю. И вот вывод с отладкой:
144814 - Запрос соединения
XXX.XXX.XXX.XXX.static.inets.ru: Reading configuration data /root/.ssh/config
XXX.XXX.XXX.XXX.static.inets.ru: Reading configuration data /etc/ssh_config
XXX.XXX.XXX.XXX.static.inets.ru: Allocated local port 1023.
XXX.XXX.XXX.XXX.static.inets.ru: Connecting to XXX.XXX.XXX.XXX, port 22.
XXX.XXX.XXX.XXX.static.inets.ru: Remote version string: SSH-2.0-OpenSSH_4.3XXX.XXX.XXX.XXX.static.inets.ru: Remote protocol version 2.0, remote software version OpenSSH_4.3
XXX.XXX.XXX.XXX.static.inets.ru: Net::SSH::Perl Version 1.30, protocol version 2.0.
XXX.XXX.XXX.XXX.static.inets.ru: No compat match: OpenSSH_4.3.
XXX.XXX.XXX.XXX.static.inets.ru: Connection established.
XXX.XXX.XXX.XXX.static.inets.ru: Sent key-exchange init (KEXINIT), wait response.
XXX.XXX.XXX.XXX.static.inets.ru: Algorithms, c->s: 3des-cbc hmac-sha1 none
XXX.XXX.XXX.XXX.static.inets.ru: Algorithms, s->c: 3des-cbc hmac-sha1 none
#Вот здесь долго висит
XXX.XXX.XXX.XXX.static.inets.ru: Entering Diffie-Hellman Group 1 key exchange.
XXX.XXX.XXX.XXX.static.inets.ru: Sent DH public key, waiting for reply.
XXX.XXX.XXX.XXX.static.inets.ru: Received host key, type 'ssh-dss'.
XXX.XXX.XXX.XXX.static.inets.ru: Host 'XXX.XXX.XXX.XXX' is known and matches the host key.
XXX.XXX.XXX.XXX.static.inets.ru: Computing shared secret key.
#И здесь долго
XXX.XXX.XXX.XXX.static.inets.ru: Verifying server signature.
XXX.XXX.XXX.XXX.static.inets.ru: Waiting for NEWKEYS message.
XXX.XXX.XXX.XXX.static.inets.ru: Enabling incoming encryption/MAC/compression.
XXX.XXX.XXX.XXX.static.inets.ru: Send NEWKEYS, enable outgoing encryption/MAC/compression.
XXX.XXX.XXX.XXX.static.inets.ru: Sending request for user-authentication service.
XXX.XXX.XXX.XXX.static.inets.ru: Service accepted: ssh-userauth.
XXX.XXX.XXX.XXX.static.inets.ru: Trying empty user-authentication request.
XXX.XXX.XXX.XXX.static.inets.ru: Authentication methods that can continue: publickey,gssapi-with-mic,password.
XXX.XXX.XXX.XXX.static.inets.ru: Next method to try is publickey.
XXX.XXX.XXX.XXX.static.inets.ru: Next method to try is password.
XXX.XXX.XXX.XXX.static.inets.ru: Trying password authentication.
XXX.XXX.XXX.XXX.static.inets.ru: Login completed, opening dummy shell channel.
XXX.XXX.XXX.XXX.static.inets.ru: channel 0: new [client-session]
XXX.XXX.XXX.XXX.static.inets.ru: Requesting channel_open for channel 0.
XXX.XXX.XXX.XXX.static.inets.ru: channel 0: open confirm rwindow 0 rmax 32768
XXX.XXX.XXX.XXX.static.inets.ru: Got channel open confirmation, requesting shell.
XXX.XXX.XXX.XXX.static.inets.ru: Requesting service shell on channel 0.
144854 - Соединение получено, 40 сек. задержки.
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: new [client-session]
XXX.XXX.XXX.XXX.static.inets.ru: Requesting channel_open for channel 1.
XXX.XXX.XXX.XXX.static.inets.ru: Entering interactive session.
XXX.XXX.XXX.XXX.static.inets.ru: Sending command: /root/perl/packets2.pl
XXX.XXX.XXX.XXX.static.inets.ru: Requesting service exec on channel 1.
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: open confirm rwindow 0 rmax 32768
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: rcvd eof
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: output open -> drain
XXX.XXX.XXX.XXX.static.inets.ru: input_channel_request: rtype exit-status reply 0
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: rcvd close
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: input open -> closed
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: close_read
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: obuf empty
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: output drain -> closed
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: close_write
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: send close
XXX.XXX.XXX.XXX.static.inets.ru: channel 1: full closed