在做免密码登陆,以及Git的时候怎么选
1
ryd994 Mar 12, 2015 via Android 乖乖写config
默认不应该是id_rsa么 |
2
155 Mar 12, 2015 默认是~/.ssh/id_dsa和~/.ssh/id_rsa, 可以通过~/.ssh/config指定.
|
3
hisway Mar 12, 2015
# vi ~/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys #验证文件路径 |
4
mN71eOOprFyMsnPx Mar 12, 2015
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 |