Passwordless SSH login

Bob ubuntu-qygzanxc at listemail.net
Thu Feb 11 03:10:49 UTC 2021


** Reply to message from Robert Heller <heller at deepsoft.com> on Wed, 10 Feb
2021 19:26:23 -0500 (EST)

> 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.

Looking at /etc/ssh/ssh_config there is no IdentifyFile parameter, all are
commented out.  Which system does this need to be set, all of them or the
client or server?

When I generated the keys I specified rsa.  I would think that would be enough
for everything to work.


> > 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
>                                                                                      
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 
Robert Blair


The secret of freedom lies in educating people, whereas the secret of tyranny is in keeping them ignorant.  -- Maximilien Robespierre




More information about the ubuntu-users mailing list