Passwordless SSH login

Robert Heller heller at deepsoft.com
Thu Feb 11 00:26:23 UTC 2021


At Wed, 10 Feb 2021 15:49:35 -0800 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> Content-Type: text/plain
> 
> I have set up SSH between two computers on my LAN and am trying to disable
> password login.  SSH works between the computers.  I can login using
> public/private keys.  What I have not been able to do is disable the password
> login.
> 

Check the IdentityFile setting in /etc/ssh/ssh_config

You need to make sure it is set to:

   IdentityFile ~/.ssh/id_rsa
   
I think Ubuntu sets it to:

   IdentityFile ~/.ssh/id_ecdsa

by default.

> The instructions I am using
> <https://www.linuxbabe.com/linux-server/setup-passwordless-ssh-login> says to
> edit /etc/ssh/sshd_config and change "PasswordAuthentication" from "yes" to
> "no" and change "ChallengeResponseAuthentication" to "no".  That did not work
> as I can still SSH to the computer and login to the computer using the
> password.
> 
> When I edit /etc/ssh/sshd_config "PasswordAuthentication" is commented out so I
> removed the comment and changed "yes" to "no". 
> "ChallengeResponseAuthentication" was not on the config file so I added it. 
> What else do I need to do?
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                     




More information about the ubuntu-users mailing list