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

前端 未结 1 1991
醉酒成梦
醉酒成梦 2020-12-04 00:22

I am trying to install git on a remote server and these are the details of that pc

IP 192.168.1.7 
Ubuntu version 12.04 32 bit 

and I have

相关标签:
1条回答
  • 2020-12-04 01:11

    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.
    0 讨论(0)
提交回复
热议问题