vi /etc/ssh/ssh_config 最后添加
#linux
Host git.xxx.cn
IdentityFile ~/.ssh/id_rsa_x90
Host e.coding.net
IdentityFile ~/.ssh/id_rsa_x90
Host gitee.com
IdentityFile ~/.ssh/id_rsa_x90
coding首次连接
ssh -T git@e.coding.net
ssh-keygen -t rsa -C "lren@xxx.cn"
ssh-keygen -t rsa -b 2048 -C "lren@xxx.cn" #指定密码长度
#生成ed25519
ssh-keygen -t ed25519 -C "abc@k83.cn" # 执行完成后cd ~/.ssh/ 可以看到生成的 私钥:id_ed25519 公钥:id_ed25519.pub
# 添加本地
chmod -R 600 ~/.ssh/
ssh-agent -s
ssh-agent bash
ssh-add ~/.ssh/id_ed25519
chmod -R 600 ~/.ssh/
ssh-agent -s
ssh-agent bash
ssh-add ~/.ssh/id_ed25519_x205
ssh-add ~/.ssh/id_ed25519_s300