ssh key config文件管理多个key
提示:可以通过 man ssh_config,查看~/.ssh/config的语法。
➜ tonny@tonny-pc ~/ssh vi ~/.ssh/config # snails Host snails HostName 115.29.240.144 Port 63210 IdentityFile ~/.ssh/115.29.240.144.pem
测试github ssh -t git@abc.com -p 2978 -i~/.ssh/115.29.240.144.pem
转载自: https://www.jianshu.com/p/6162b94110fc
参考:https://www.jianshu.com/p/6162b94110fc
https://docs.github.com/cn/github/authenticating-to-github/testing-your-ssh-connection