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