例如我們要配置自己工作環(huán)境的git ssh,git osc的ssh,github的ssh,但是默認情況下,ssh_config只識別~/.ssh/id_rsa對于的public key,為了能夠兼容更多的配置,我們要進行如下設置。
問題現(xiàn)象
git ssh Permission denied (publickey)
修改配置文件 /etc/ssh/ssh_config
IdentityFile ~/.ssh/gitosc_rsa
IdentityFile ~/.ssh/id_rsa