查看当前ssh密钥
ls ~/.ssh
生成ssh密钥
ssh-keygen -t ed25519(ps:类型,rsa) -t rsa -C “邮箱地址@example.com”
验证
ssh -T git@github.com
如果验证失败
ssh: Could not resolve hostname github.com: No address associated with hostname
1.ping github.com确定ip地址
ping www.github.com
2.找到windows系统下的hosts文件
C:\Windows\System32\drivers\etc
3.将ping到的ip地址加入hosts文件中
20.205.243.166 github.com