How to ssh to localhost without password?

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

    Another possible answer: the authorized_keys file may exist and be readable. But if it is group- or world-writable, it will still prompt for the password. The answer to THAT problem is

    chmod og-wx ~/.ssh/authorized_keys
    

提交回复
热议问题