How to ssh to localhost without password?

后端 未结 12 762
无人及你
无人及你 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:33

    Two simple steps:

    ssh-keygen -t rsa 
    ssh-copy-id localhost
    

    Enter password and you're done.

提交回复
热议问题