标签:keygen 两种方法 col 发送 zid 密钥 bcd host 证明
# ssh user@host
The authenticity of host ‘host (18.18.229.21)‘ can‘t be established.
RSA key fingerprint is 98:2e:d7:e0:de:9f:ac:67:28:c2:42:2d:37:16:58:4d.
Are you sure you want to continue connecting (yes/no)?
如果确定这个公钥就是目标服务器发过来的公钥,就点击yes,完成登陆。
公钥登陆
ssh-keygen -t rsa -C "150321****@163.com"
192:~ zhoufei$ cd ~/.ssh 192:.ssh zhoufei$ cat id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBQYZidTBczPtJ22xNJwl7Pq+yaZnualVS8juad3Oq+w6v5kgin9sW+xs7w9qrGmWHTkkOIPvckmqY7qobazI32YzI9IKFE2yGm51H1pXM4t9iEB0OCHdy1s1D2gB/bNI2ZJPhDjLOfbGO1Mj9B85n8WR0dy8eYSRBhUneiKor8ENnCvP1Sw4XOsEg6aDCMNRCzDY94Ar4ps41hcg34dNS2eMPsXMrTrz8fCv+IbBltUMDVdcoEFwb8VyYZ8ZspbY6zzRc1nZ5flhfGoB6Zjmmz2tSGCnNS16GdTpoGJd+UaiqrWNuocYWorPocbeMiIi+duZfvYVRNDCmaN0zUlwl****977961@qq.com
若添加后,无法正常拉取和提交,就本地查询是否有客户端身份信息
abcdeMacBook-Pro:.ssh zhoufei$ ssh-add -L
The agent has no identities.
解决方法:
abcdeMacBook-Pro:.ssh zhoufei$ ssh-add Enter passphrase for /Users/zhoufei/.ssh/id_rsa: Identity added: /Users/zhoufei/.ssh/id_rsa (/Users/zhoufei/.ssh/id_rsa)
标签:keygen 两种方法 col 发送 zid 密钥 bcd host 证明
原文地址:https://www.cnblogs.com/zhou--fei/p/9937693.html