<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH taking long time in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258335#M61071</link>
    <description>&lt;!--!*#--&gt;&amp;gt; [...] whenever I do ssh, it takes long time.&lt;BR /&gt;&lt;BR /&gt;Can you tell what it's doing when the "takes&lt;BR /&gt;long time" part happens?&lt;BR /&gt;&lt;BR /&gt;A common cause of apparently slow network&lt;BR /&gt;connections is a DNS problem.  Many server&lt;BR /&gt;programs (like, say, sshd) try to do a&lt;BR /&gt;(reverse) address-to-name look-up on the&lt;BR /&gt;client's IP address.  If that fails (slowly),&lt;BR /&gt;then the connection appears to be slow.  To&lt;BR /&gt;test this, on the server system ("host123"?),&lt;BR /&gt;do:&lt;BR /&gt;      nslookup &lt;CLIENT_IP_ADDRESS&gt;&lt;BR /&gt;and see if that's slow.&lt;/CLIENT_IP_ADDRESS&gt;</description>
    <pubDate>Sun, 10 Oct 2010 00:26:51 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-10-10T00:26:51Z</dc:date>
    <item>
      <title>SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258334#M61070</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have reinstalled my machine with RedHat Linux AS3 (The server had disk errors; and after replacing the disk we have installed with same OS which was there earlier)&lt;BR /&gt;&lt;BR /&gt;Now whenever I do ssh, it takes long time..Can any one help me please?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;abc123:/ # ssh -vv host123&lt;BR /&gt;OpenSSH_4.3p2, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;debug1: Reading configuration data /etc/ssh/ssh_config&lt;BR /&gt;debug1: Applying options for *&lt;BR /&gt;debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).&lt;BR /&gt;        0509-026 System error: A file or directory in the path name does not exist.&lt;BR /&gt;&lt;BR /&gt;debug1: Error loading Kerberos, disabling Kerberos auth.&lt;BR /&gt;debug2: ssh_connect: needpriv 0&lt;BR /&gt;debug1: Connecting to host123 [10.110.128.10] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/0&lt;BR /&gt;debug1: identity file /.ssh/identity type -1&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----BEGIN'&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----END'&lt;BR /&gt;debug1: identity file /.ssh/id_rsa type 1&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----BEGIN'&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----END'&lt;BR /&gt;debug2: key_type_from_name: unknown key type 'from="abc123,abc123.dns.com"'&lt;BR /&gt;debug1: identity file /.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2&lt;BR /&gt;debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.3&lt;BR /&gt;debug2: fd 4 setting O_NONBLOCK&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-rsa,ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-rsa,ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: mac_init: found hmac-md5&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_init: found hmac-md5&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug2: dh_gen_key: priv key bits set: 135/256&lt;BR /&gt;debug2: bits set: 516/1024&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host 'host123' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.ssh/known_hosts:1922&lt;BR /&gt;debug2: bits set: 529/1024&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug2: kex_derive_keys&lt;BR /&gt;debug2: set_newkeys: mode 1&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug2: set_newkeys: mode 0&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug2: service_accept: ssh-userauth&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug2: key: /.ssh/identity (0)&lt;BR /&gt;debug2: key: /.ssh/id_rsa (20052918)&lt;BR /&gt;debug2: key: /.ssh/id_dsa (0)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /.ssh/identity&lt;BR /&gt;debug1: Offering public key: /.ssh/id_rsa&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Trying private key: /.ssh/id_dsa&lt;BR /&gt;debug1: read PEM private key done: type DSA&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentication succeeded (publickey).&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug2: channel 0: send open&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;debug2: callback start&lt;BR /&gt;debug2: client_session2_setup: id 0&lt;BR /&gt;debug2: channel 0: request pty-req confirm 0&lt;BR /&gt;debug2: channel 0: request shell confirm 0&lt;BR /&gt;debug2: fd 4 setting TCP_NODELAY&lt;BR /&gt;debug2: callback done&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768&lt;BR /&gt;debug2: channel 0: rcvd adjust 131072&lt;BR /&gt;Last login: Sat Oct  9 10:50:14 2010 from abc123.dns.com&lt;BR /&gt;*******************************************************************************&lt;BR /&gt;*                                                                             *&lt;BR /&gt;*  host123 is an Linux RHAS3.0 system protected by eTrust Access Control   *&lt;BR /&gt;                *&lt;BR /&gt;*                                                                             *&lt;BR /&gt;*******************************************************************************&lt;BR /&gt;[root@host123 root]#&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Oct 2010 15:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258334#M61070</guid>
      <dc:creator>Nagu SR</dc:creator>
      <dc:date>2010-10-09T15:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258335#M61071</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] whenever I do ssh, it takes long time.&lt;BR /&gt;&lt;BR /&gt;Can you tell what it's doing when the "takes&lt;BR /&gt;long time" part happens?&lt;BR /&gt;&lt;BR /&gt;A common cause of apparently slow network&lt;BR /&gt;connections is a DNS problem.  Many server&lt;BR /&gt;programs (like, say, sshd) try to do a&lt;BR /&gt;(reverse) address-to-name look-up on the&lt;BR /&gt;client's IP address.  If that fails (slowly),&lt;BR /&gt;then the connection appears to be slow.  To&lt;BR /&gt;test this, on the server system ("host123"?),&lt;BR /&gt;do:&lt;BR /&gt;      nslookup &lt;CLIENT_IP_ADDRESS&gt;&lt;BR /&gt;and see if that's slow.&lt;/CLIENT_IP_ADDRESS&gt;</description>
      <pubDate>Sun, 10 Oct 2010 00:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258335#M61071</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-10T00:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258336#M61072</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Its not a problem with Network. ssh was functioning normally before server was reinstalled.&lt;BR /&gt;&lt;BR /&gt;ssh slows down at this below stage..(debuggung messages output -vv)&lt;BR /&gt;&lt;BR /&gt;debug1: Offering public key: /.ssh/id_rsa&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Trying private key: /.ssh/id_dsa&lt;BR /&gt;debug1: read PEM private key done: type DSA&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentication succeeded (publickey).&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug2: channel 0: send open&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;debug2: callback start&lt;BR /&gt;debug2: client_session2_setup: id 0&lt;BR /&gt;debug2: channel 0: request pty-req confirm 0&lt;BR /&gt;debug2: channel 0: request shell confirm 0&lt;BR /&gt;debug2: fd 4 setting TCP_NODELAY&lt;BR /&gt;debug2: callback done&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768&lt;BR /&gt;debug2: channel 0: rcvd adjust 131072&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I suspect, it could be problem with some authentication but I dont know how to fix it.&lt;BR /&gt;&lt;BR /&gt;I may be wrong though</description>
      <pubDate>Mon, 11 Oct 2010 23:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258336#M61072</guid>
      <dc:creator>Nagu SR</dc:creator>
      <dc:date>2010-10-11T23:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258337#M61073</link>
      <description>&lt;!--!*#--&gt;&amp;gt; It[']s not a problem with Network. [...]&lt;BR /&gt;&lt;BR /&gt;Which means what, exactly?  Your opinion is&lt;BR /&gt;interesting, but, as usual, showing actual&lt;BR /&gt;commands with their actual output (that is,&lt;BR /&gt;actual evidence) can be more helpful than&lt;BR /&gt;vague descriptions or interpretations, or&lt;BR /&gt;opinions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] on the server system ("host123"?),&lt;BR /&gt;&amp;gt; do:&lt;BR /&gt;&amp;gt;       nslookup &lt;CLIENT_IP_ADDRESS&gt;&lt;BR /&gt;&amp;gt; and see if that's slow.&lt;BR /&gt;&lt;BR /&gt;Did you try that?  What happened?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ssh slows down at this below stage..&lt;BR /&gt;&lt;BR /&gt;Where in that sequence?  Beginning?  Middle?&lt;BR /&gt;End?&lt;BR /&gt;&lt;BR /&gt;Is SSH the only slow thing?  Try Telnet?&lt;BR /&gt;All users or only this user ("root")?&lt;BR /&gt;Anything weird in the shell start-up file(s)?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I suspect, it could be problem with some&lt;BR /&gt;&amp;gt; authentication [...]&lt;BR /&gt;&lt;BR /&gt;When you see "debug1: Authentication&lt;BR /&gt;succeeded (publickey).", then I think that&lt;BR /&gt;authentication is pretty well complete.&lt;BR /&gt;&lt;BR /&gt;Also, something which I forgot to ask:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have reinstalled my machine [...]&lt;BR /&gt;&lt;BR /&gt;Is "my machine" the SSH client here, or the&lt;BR /&gt;server?  Is this the only machine which has&lt;BR /&gt;this problem?&lt;/CLIENT_IP_ADDRESS&gt;</description>
      <pubDate>Tue, 12 Oct 2010 02:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258337#M61073</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-12T02:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258338#M61074</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If an SSH connection seems slow to establish, usually it boils down to name resolution. Check with the dig/host command if the name service responds in time. I suspect this is either a name resolution problem or a routing problem. Either way, it must be on the newly installed server and not on the other parts (network interfaces, remote side), if they weren't changed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
      <pubDate>Tue, 12 Oct 2010 07:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258338#M61074</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-10-12T07:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: SSH taking long time</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258339#M61075</link>
      <description>I have regenerated ssh keys and copied. &lt;BR /&gt;&lt;BR /&gt;Now its all fine.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 12 Oct 2010 21:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-taking-long-time/m-p/5258339#M61075</guid>
      <dc:creator>Nagu SR</dc:creator>
      <dc:date>2010-10-12T21:34:39Z</dc:date>
    </item>
  </channel>
</rss>

