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