<?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: it is very slow to get command prompt after entering the password when logging thru putty (ssh) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473076#M37784</link>
    <description>Can you identify where the slowness happens? Does it happen before /etc/profile starts, or somewhere within /etc/profile or your personal login script?&lt;BR /&gt;Add some commands like:&lt;BR /&gt;&lt;BR /&gt;echo "in the beginning of /etc/profile"&lt;BR /&gt;&lt;BR /&gt;to various locations in the login scripts, then try to locate the point where the system spends a lot of time.&lt;BR /&gt;&lt;BR /&gt;One common reason for slow logins is a large wtmp file (/var/log/wtmp in most Linuxes). This usually affects all logins, not only SSH logins. In this case, the slowness usually happens before /etc/profile starts executing.&lt;BR /&gt;&lt;BR /&gt;The wtmp file records all login/logout events. The system must search through it to find &amp;amp; display the last login times. The bigger the file is, the more time the login procedure takes.&lt;BR /&gt;&lt;BR /&gt;RedHat systems have a cron job that periodically truncates the wtmp file (using logrotate to archive a few old versions). This prevents it from ever getting too big. You should check if SuSE has ready-made scripts or cron jobs to manage the wtmp file, and consider enabling them. If there is nothing, write your own.&lt;BR /&gt;&lt;BR /&gt;The simplest script for truncating the wtmp file would be:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;# backup the old wtmp file&lt;BR /&gt;cp /var/log/wtmp /var/log/wtmp.old&lt;BR /&gt;# truncate the wtmp file&lt;BR /&gt;&amp;gt; /var/log/wtmp&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Wed, 05 Aug 2009 14:08:38 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-08-05T14:08:38Z</dc:date>
    <item>
      <title>it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473071#M37779</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;In of my Suse linux server, it is very slow to get command prompt after entering the password when logging thru putty (ssh).&lt;BR /&gt;&lt;BR /&gt;How to solve this?</description>
      <pubDate>Tue, 04 Aug 2009 17:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473071#M37779</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-08-04T17:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473072#M37780</link>
      <description>&lt;!--!*#--&gt;Is this the same (reverse-) DNS problem as&lt;BR /&gt;in:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1358233" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1358233&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;A Forum search for keywords like&lt;BR /&gt;      ssh slow&lt;BR /&gt;might find some of the dozens of similar, old&lt;BR /&gt;threads.</description>
      <pubDate>Tue, 04 Aug 2009 17:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473072#M37780</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-04T17:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473073#M37781</link>
      <description>But i am able to resolve the name and ip thru DNS running in that particular Linux server.</description>
      <pubDate>Wed, 05 Aug 2009 11:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473073#M37781</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-08-05T11:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473074#M37782</link>
      <description>To identify if the problem is reverse dns lookups, you could configure the following option in sshd_config and reload the service:&lt;BR /&gt;&lt;BR /&gt;UseDNS no&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Aug 2009 12:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473074#M37782</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-08-05T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473075#M37783</link>
      <description>&lt;!--!*#--&gt;&amp;gt; But i am able to resolve the name and ip&lt;BR /&gt;&amp;gt; thru DNS running in that particular Linux&lt;BR /&gt;&amp;gt; server.&lt;BR /&gt;&lt;BR /&gt;Which "name and ip" can you resolve where?&lt;BR /&gt;Evidence?</description>
      <pubDate>Wed, 05 Aug 2009 13:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473075#M37783</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-05T13:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473076#M37784</link>
      <description>Can you identify where the slowness happens? Does it happen before /etc/profile starts, or somewhere within /etc/profile or your personal login script?&lt;BR /&gt;Add some commands like:&lt;BR /&gt;&lt;BR /&gt;echo "in the beginning of /etc/profile"&lt;BR /&gt;&lt;BR /&gt;to various locations in the login scripts, then try to locate the point where the system spends a lot of time.&lt;BR /&gt;&lt;BR /&gt;One common reason for slow logins is a large wtmp file (/var/log/wtmp in most Linuxes). This usually affects all logins, not only SSH logins. In this case, the slowness usually happens before /etc/profile starts executing.&lt;BR /&gt;&lt;BR /&gt;The wtmp file records all login/logout events. The system must search through it to find &amp;amp; display the last login times. The bigger the file is, the more time the login procedure takes.&lt;BR /&gt;&lt;BR /&gt;RedHat systems have a cron job that periodically truncates the wtmp file (using logrotate to archive a few old versions). This prevents it from ever getting too big. You should check if SuSE has ready-made scripts or cron jobs to manage the wtmp file, and consider enabling them. If there is nothing, write your own.&lt;BR /&gt;&lt;BR /&gt;The simplest script for truncating the wtmp file would be:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;# backup the old wtmp file&lt;BR /&gt;cp /var/log/wtmp /var/log/wtmp.old&lt;BR /&gt;# truncate the wtmp file&lt;BR /&gt;&amp;gt; /var/log/wtmp&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 05 Aug 2009 14:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473076#M37784</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-08-05T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: it is very slow to get command prompt after entering the password when logging thru putty (ssh)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473077#M37785</link>
      <description>In addition to the other suggestions, check whether ssh is having trouble running xauth - and don't tunnel X if you don't need to.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Aug 2009 23:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/it-is-very-slow-to-get-command-prompt-after-entering-the/m-p/4473077#M37785</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-08-05T23:36:19Z</dc:date>
    </item>
  </channel>
</rss>

