cd ~/.ssh
ls
ssh-keygen -t rsa -C '2567199685@qq.com' -f ~/.ssh/github_id_rsa
touch config
vim config
cat github_id_rsa.pub
# codeup
Host codeup
HostName codeup.aliyun.com
IdentityFile ~/neware.com.cn/.ssh/erp_rsa.pub
PreferredAuthentications publickey
IdentityAgent none
IdentitiesOnly yes
# neware
Host neware
HostName git.neware.work:8027
IdentityFile ~/neware.com.cn/.ssh/git_neware_work.pub
PreferredAuthentications publickey
IdentityAgent none
IdentitiesOnly yes
# github
Host github
HostName github.com
IdentityFile ~/.ssh/github_id_rsa
PreferredAuthentications publickey
IdentityAgent none
IdentitiesOnly yes