1.修改當前登錄用戶的 ssh 環境變量文件(沒有則新增)
vim ~/.ssh/config
2.根據需求,定義需要連接的主機的私鑰路徑(可以定義多個不同的主機)
Host github.com User git Hostname github.com IdentityFile ~/data/.ssh/git_id_rsa Host 172.16.3.25 User lowman Hostname 172.16.3.25 IdentityFile ~/data/.ssh/my_id_rsa
根據實際情況修改成自己的信息即可
