ssh to remote pc in the same network - Permission denied (publickey)

梦想与她 提交于 2019-11-27 15:52:18
VonC

Check your permissions:

  • on the client side (chmod 644 ~/.ssh/id_rsa.pub)
  • on the server side

    chmod 700 /home/git/.ssh
    chmod 600 /home/git/.ssh/authorized_keys
    

Then, if it is still not working, check the output of:

  • on the client side, a ssh -Tvvv git@192.168.1.7
  • on the server side, a debug ssh daemon session (/usr/sbin/sshd -d): see this answer.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!