Force ssh to use Password instead of Public Key
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)
PR: 0



























