问题:
$ 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 ubuntu@50.10.155.65 "cat>> .ssh/authorized_keys"

本文详细介绍了如何解决在使用Git进行远程克隆时遇到的权限被拒绝问题,通过生成SSH公钥并将其添加到远程服务器的授权文件中来解决。

470

被折叠的 条评论
为什么被折叠?



