RedHat 6/Oracle Linux 6 is not allowing key authentication via ssh

前端 未结 4 1068
死守一世寂寞
死守一世寂寞 2021-02-04 10:38

Keys are properly deployed in ~/.ssh/authorized_keys

Yet ssh keeps on prompting for a password.

4条回答
  •  旧巷少年郎
    2021-02-04 10:55

    I had also this same issue, the proposed solution above did not solve the case for me. To summarise instructions abowe together:

    1. Check following logfile on target system for possible details of errors: /var/log/secure
    2. Permission of files in users ~/.ssh directory should be 600 and files should be owned By "user:group"
    3. Permission of ~/.ssh directory should be 700 and owned By "user:group"
    4. Permission of home directory of user ie. "~" (="~/.ssh/..") should be 755. If permissions are f.ex 775, ssh key autenthication failed in my system.

    br bruno

提交回复
热议问题