<?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 login giving Access denied in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837721#M24571</link>
    <description>Thanks for the early response &lt;BR /&gt;There is no /var/log/auth file &lt;BR /&gt;Here are the last 2 lines from the /var/log/messages&lt;BR /&gt;&lt;BR /&gt;Aug  4 17:33:42 swswdev503 pam_tally[31348]: user dpser12 (1241) tally 20, deny 5&lt;BR /&gt;Aug  4 17:34:20 swswdev503 pam_tally[31428]: user dpser12 (1241) tally 21, deny 5&lt;BR /&gt;and here is the &lt;BR /&gt;# ssh -v dpser12@swswdev503 &lt;BR /&gt;&lt;BR /&gt;OpenSSH_3.8, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;HP-UX_Secure_Shell-A.03.81.002, HP_UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to swswdev503 [10.129.66.92] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /.ssh/id_dsa type 2&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2&lt;BR /&gt;debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.8&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&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;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host 'swswdev503' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.ssh/known_hosts:23&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;Authorized use only. All activity may be logged.&lt;BR /&gt;&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/id_rsa&lt;BR /&gt;debug1: Offering public key: /.ssh/id_dsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;dpser12@swswdev503s password:&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;Permission denied, please try again.&lt;BR /&gt;&lt;BR /&gt;User's shell is  /bin/bash and home directory is&lt;BR /&gt;drwx------    3 dpser12  dpser12      4096 Apr 28 23:20 dpser12&lt;BR /&gt;&lt;BR /&gt;I am able to su - dpser12 as root&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Aug 2006 16:42:05 GMT</pubDate>
    <dc:creator>Devesh Pant_1</dc:creator>
    <dc:date>2006-08-04T16:42:05Z</dc:date>
    <item>
      <title>ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837718#M24568</link>
      <description>Hello admins,&lt;BR /&gt;&lt;BR /&gt;I have a Red Hat Linux 3 server that I am not able to log on using my id &lt;BR /&gt;I am getting something like this&lt;BR /&gt;dpser12@swswdev503's password:&lt;BR /&gt;Access denied&lt;BR /&gt;&lt;BR /&gt;I have reset my password as root still doesn't work&lt;BR /&gt;I have also tried the usermod -U dpser12&lt;BR /&gt;Where should I look ?&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Fri, 04 Aug 2006 16:21:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837718#M24568</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-08-04T16:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837719#M24569</link>
      <description>Check the /var/log/auth and /var/log/messages.&lt;BR /&gt;&lt;BR /&gt;Run ssh -v dpser12@swswdev503 and post the output.&lt;BR /&gt;&lt;BR /&gt;In the server, stop the SSH service and start it in foreground mode to check the messages:&lt;BR /&gt;&lt;BR /&gt;service sshd stop&lt;BR /&gt;/usr/sbin/sshd -d&lt;BR /&gt;&lt;BR /&gt;Check the user's shell and home directory permissions.</description>
      <pubDate>Fri, 04 Aug 2006 16:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837719#M24569</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-04T16:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837720#M24570</link>
      <description>Also, check your /etc/ssh/sshd_config file if you have the AllowUsers/DenyUsers or AllowGroup s/DenyGroups directive configured.</description>
      <pubDate>Fri, 04 Aug 2006 16:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837720#M24570</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-04T16:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837721#M24571</link>
      <description>Thanks for the early response &lt;BR /&gt;There is no /var/log/auth file &lt;BR /&gt;Here are the last 2 lines from the /var/log/messages&lt;BR /&gt;&lt;BR /&gt;Aug  4 17:33:42 swswdev503 pam_tally[31348]: user dpser12 (1241) tally 20, deny 5&lt;BR /&gt;Aug  4 17:34:20 swswdev503 pam_tally[31428]: user dpser12 (1241) tally 21, deny 5&lt;BR /&gt;and here is the &lt;BR /&gt;# ssh -v dpser12@swswdev503 &lt;BR /&gt;&lt;BR /&gt;OpenSSH_3.8, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;HP-UX_Secure_Shell-A.03.81.002, HP_UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to swswdev503 [10.129.66.92] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /.ssh/id_dsa type 2&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2&lt;BR /&gt;debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.8&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&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;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host 'swswdev503' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.ssh/known_hosts:23&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;Authorized use only. All activity may be logged.&lt;BR /&gt;&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/id_rsa&lt;BR /&gt;debug1: Offering public key: /.ssh/id_dsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;dpser12@swswdev503s password:&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;Permission denied, please try again.&lt;BR /&gt;&lt;BR /&gt;User's shell is  /bin/bash and home directory is&lt;BR /&gt;drwx------    3 dpser12  dpser12      4096 Apr 28 23:20 dpser12&lt;BR /&gt;&lt;BR /&gt;I am able to su - dpser12 as root&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Aug 2006 16:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837721#M24571</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-08-04T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837722#M24572</link>
      <description>You have configured maximum logins attemps and account locking &lt;BR /&gt;&lt;BR /&gt;pam_tally[31428]: user dpser12 (1241) tally 21,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try with:&lt;BR /&gt;&lt;BR /&gt;pam_tally --user dpser12 --reset=0&lt;BR /&gt;&lt;BR /&gt;The sintax is:&lt;BR /&gt;&lt;BR /&gt;pam_tally [--file rooted-filename] [--user username] [--reset[=n]]</description>
      <pubDate>Fri, 04 Aug 2006 16:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837722#M24572</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-04T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837723#M24573</link>
      <description>Thanks a lot Ivan&lt;BR /&gt;&lt;BR /&gt;Someone here suggested using the command &lt;BR /&gt;pam_tally --user (username) --reset=0&lt;BR /&gt;&lt;BR /&gt;and it did the trick, although no one here could give me an explanation. I will keep looking and gaining more knowledge on pam I think. Any ideas where should I look for pam ?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Devesh</description>
      <pubDate>Fri, 04 Aug 2006 16:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837723#M24573</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-08-04T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837724#M24574</link>
      <description>Thanks a lot Ivan&lt;BR /&gt;&lt;BR /&gt;Someone here suggested using the command &lt;BR /&gt;pam_tally --user (username) --reset=0&lt;BR /&gt;&lt;BR /&gt;and it did the trick, although no one here could give me an explanation. I will keep looking and gaining more knowledge on pam I think. Any ideas where should I look for pam ?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Fri, 04 Aug 2006 16:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837724#M24574</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-08-04T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: ssh login giving Access denied</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837725#M24575</link>
      <description>Normally it's configured in /etc/pam.d/system-auth.&lt;BR /&gt;&lt;BR /&gt;It's used for lock an account after N bad logon attemps.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://darwingrok.physics.ox.ac.uk:8080/source/xref/pam/pam/modules/pam_tally/" target="_blank"&gt;http://darwingrok.physics.ox.ac.uk:8080/source/xref/pam/pam/modules/pam_tally/&lt;/A&gt;</description>
      <pubDate>Fri, 04 Aug 2006 17:03:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-login-giving-access-denied/m-p/3837725#M24575</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-04T17:03:51Z</dc:date>
    </item>
  </channel>
</rss>

