1) 重新ssh-keygen -t rsa -C "xxxx@xxx.com" 后链接不上
debug 过程:
1.用vim打开id_isa.pub复制到gihub 报错 格式不对 ---->用 cat 或者 gedit打开
2.ssh git@github.com 失败:报 Permission publickey(denies) -----> ssh -T -v git@github.com 在日志中发现:
- debug1: Next authentication method: publickey
- debug1: Trying private key: /home/sunny/.ssh/id_dsa
- debug1: Trying private key: /home/sunny/.ssh/id_ecdsa
- debug1: No more authentication methods to try.
它一直在找id_dsa,id_ecdsa两个私钥, !!!!而ssh-keygen生成的是id_isa ,id_isa.pub .所以cp id_isa id_dsa 即可链接成功