1. 在开发机上生成自己的密钥 ssh-keygen -b 1024 -t rsa -b 指密钥对长度 -t 指加密方式 Enter file in which to save the key (/home/usrname/.ssh/id_dsa): 默认位置即可,方便简洁 然后 passphrase 输入一个登陆密码,不然别人有了私钥在一台设备上就随便提交了 不过有个缺陷就是会每次都输入密码,可以按照(4)的方式,使用ssh缓存 生成后,在自己的.ssh目录下会生成私钥和公钥 2. 在gi…
一.git push origin master 时出错 错误信息为: Permission denied(publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 可能: 可能没联网 可能没配置好.git/conf文件 可能是与github上的账号没建立密钥对 二.解决办法 配置文…
root@debian64:/home/xiaoliuzi/.ssh/key_backup# ssh -T git@github.com The authenticity of host 'github.com (192.30.252.131)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continu…