Home » Development, LAMP, Open Source, Programming, Technology

Force ssh to use Password instead of Public Key

27 June 2011 1,740 views Comments Permanent Link

Here is what you should pass to ssh so that it doesn’t attempt to authenticate using a Public Key.

ssh-o "PubkeyAuthentication no" user@server

I was getting the following error when trying to login to ssh to a Server.

Received disconnect from <IP>: 2: Too many authentication failures for root

I verbosed to see the errors and got the following:


debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: bijay@bijay
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: bijay@bijay
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: bijay@bijay
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: bijay@bijay
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: bijay@bijay
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: bijay@bijay
Received disconnect from : 2: Too many authentication failures for root

By Default because of the ssh config, it was trying to authenticate using Public Key (pubkey)

Related Posts with Thumbnails

Popularity: 11% [?]

PR: 0

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
blog comments powered by Disqus
Olark Livehelp