2018-01-29 重新回忆起 如何在某账户下的linux界面下增加ssh下的钥匙对

重新回忆起 如何在某账户下的linux界面下增加ssh下的钥匙对;


今天 ,我又要 利用 git 做ftp (temporarily) ,把 tester@176 下面的的某个 代码文件夹 bottle 转移到我的ubuntu本地下面

--结果 ,在 [email protected] .xx 下 运行 

git clone [email protected]:yangliclai/tempforftp.git

报错如下: 


(py27) tester@ubuntu:/var/www/tempforftp$ git clone [email protected]:yangliclai/tempforftp.git

Cloning into 'tempforftp'...

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights


如何解决?? 

--解决方案 :  

// 尝试01 ,  cd ~  回到主界面  ; 然后看了下  tester@ 下的# ,  ls -ah 

原来 .ssh 下并没有 钥匙对

所以说有上面的报错 ,可以是正常的喽 !!


-- 如何解决: 

参考2017-12-11 的 帖子: 

网络地址: https://www.jianshu.com/p/e98e4948b577

ssh-keygen -t rsa -C "[email protected]

最初源头的网址: 

https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374385852170d9c7adf13c30429b9660d0eb689dd43a000


2018-01-29 重新回忆起 如何在某账户下的linux界面下增加ssh下的钥匙对_第1张图片

你可能感兴趣的:(2018-01-29 重新回忆起 如何在某账户下的linux界面下增加ssh下的钥匙对)