linux 或者windows 设置git的ssh
[ ~]# git config --global user.name "yindongzi" [ ~]# git config --global user.email "" [ ~]# cd /root/.ssh [ .ssh]# cat id_rsa.pub ssh-rsa ……………………
生成密钥对:
ssh-keygen -t rsa -C ""
复制公钥的内容,粘贴到github。
然后在pc端登陆github
[ .ssh]# ssh The authenticity of host ‘github.com (13.250.177.223)‘ can‘t be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘github.com,13.250.177.223‘ (RSA) to the list of known hosts. PTY allocation request failed on channel 0 Hi ZhzhIn! You‘ve successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.
相关推荐
hulao 2020-06-12
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19