How to ssh to localhost without password?

后端 未结 12 763
无人及你
无人及你 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条回答
  •  Happy的楠姐
    2020-12-07 13:38

    I encountered the same problem when running unit tests on Docker container(golang:1.13-alpine).

    After sshd -Dd and ssh -vv root@localhost debugging, I found the reason:

    User root not allowed because account is locked

    So, we should unlock the account by passwd -u or set a password.

提交回复
热议问题