Passwordless SSH login
Shamim Shahriar
shamim.shahriar at gmail.com
Thu Feb 11 07:14:11 UTC 2021
On Thu, 11 Feb 2021 at 05:19, Bob <ubuntu-qygzanxc at listemail.net> wrote:
> ** Reply to message from "Bob" <ubuntu-qygzanxc at listemail.net> on Wed, 10
> Feb
> 2021 15:49:35 -0800
>
> > 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.
> I think this has gotten off on a tangent.
>
> What I want is to prevent someone logging in the the computer using a
> password.
>
> I only want to allow a login using an rsa key.
>
<snip>
On top of what you have already done, on the server side, please put this
into your /etc/ssh/sshd_config file and RESTART the daemon
AuthenticationMethods publickey
once done, it will first ask for the public key and if that is not
presented by the client, will refuse to go any further (i.e., not password
question should be asked).
Hope this helps
Kind regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210211/07994ddd/attachment.html>
More information about the ubuntu-users
mailing list