在做免密码登陆,以及Git的时候怎么选
1
ryd994 2015-03-12 14:37:44 +08:00 via Android 1
乖乖写config
默认不应该是id_rsa么 |
2
155 2015-03-12 14:38:10 +08:00 1
默认是~/.ssh/id_dsa和~/.ssh/id_rsa, 可以通过~/.ssh/config指定.
|
3
hisway 2015-03-12 16:21:53 +08:00
# vi ~/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys #验证文件路径 |
4
FifiLyu 2015-03-12 17:53:15 +08:00
cat ~/.ssh/config
# 未指定Host的私钥必须在顶部 IdentityFile ~/.ssh/111111111111.key IdentityFile ~/.ssh/222222222222.key Host git.oschina.net IdentityFile ~/.ssh/git.oschina.net.3333333.key Host github.com IdentityFile ~/.ssh/github.com.444444444.key |