How to ssh to localhost without password?

后端 未结 12 723
无人及你
无人及你 2020-12-07 13:05

EDIT: Putting exactly what was done

I need to SSH localhost without password, the usual way of doing it (with public keys) do not work.

user@PC:~$ rm         


        
12条回答
  •  有刺的猬
    2020-12-07 13:50

    I fixed my problem setting the AllowUsers on sshd_config file.

    Running the server with debuging:

    $sshd -Dd

    I found it was not allowed the my user

    $sudo vi /etc/ssh/sshd_config

    Add a row with after #Authentication:

    AllowUsers myUser

提交回复
热议问题