Bootstrap FreeKB - SSH - ssh PasswordAuthentication option
SSH - ssh PasswordAuthentication option

Updated:   |  SSH articles

By default, if the SSH server you are connecting to is configured to accept password authentication, and you are not using a public key for passwordless authentication, there will be a prompt to enter the password.

~]# ssh john.doe@server1.example.com
john.doe@server1 password: 

 

This occurs, because, by default, the ssh command has PasswordAuthentication set to "yes". If you would like the SSH command to not produce the prompt for the password, you can use the following option.

ssh -o PasswordAuthentication=no john.doe@server1.example.com

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 2a13fc in the box below so that we can be sure you are a human.