DEV Community

温城
温城

Posted on

SSH Password-free login not working

System:Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-47-generic x86_64)

if you added publish key but password-free login still not working maybe you directory permission error.

  1. set .ssh directory permission 700
  2. set .ssh/authorized_keys file permission 600
sudo chmod ~/.ssh 700;
sudo chmod ~/.ssh/authorized_keys 600;
Enter fullscreen mode Exit fullscreen mode

Oldest comments (0)