Permission denied (publickey).

问题:

$ git clone 50.10.155.65:/var/www/wallpaper

Cloning into wallpaper...
Permission denied (publickey).

fatal: The remote end hung up unexpectedly


解决方法:

$ cat ~/.ssh/id_rsa.pub | ssh -i ~/.ssh/ec2_geekin.pem [email protected] "cat>> .ssh/authorized_keys"

你可能感兴趣的:(ubuntu,git,ssh,UP)