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
Check your permissions:
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:
ssh -Tvvv git@192.168.1.7
/usr/sbin/sshd -d
): see this answer.