CentOS使用在有私钥时使用ssh进行git clone要求输入密码的解决方案
2016-10-18 17:59
1041 查看
i’m a CentOS user using Fedora 23 There exists some question when
my bash asked me to input the password for metastasis@shtech.org all the times then i did
my bash returned
and deleted the ‘#’ before
it didn’t work on neither git clone nor ssh Then i looked my question up in Google and added a line in /etc/ ssh/ssh_config
it also didn’t work and retur/ssh_config line 89 : Bad key types ‘ssh-dss’hanged ‘ssh-dss’ to ‘ssh-dsa’ or ‘id-dsa’ , but it still didn’t work Now i finished it myself by adding PubkeyAcceptedKeyTypes ssh-dss after Host * like
and i cloned it successfully
$ git clone git clone metastasis@shtech.org:user/myname/1/0
my bash asked me to input the password for metastasis@shtech.org all the times then i did
$ ssh -vvv metastasis@shtech.org
my bash returned
debug1: Trying private key: /home/bob/.ssh/id_dsa debug1: Skipping ssh-dss key /home/bob/.ssh/id_dsa for not in PubkeyAcceptedKeyTypes and skipped my id_dsa file After asking my friends, i
# nano /etc/ ssh/ssh_config
and deleted the ‘#’ before
IdentityFile ~/.ssh/id_dsa
it didn’t work on neither git clone nor ssh Then i looked my question up in Google and added a line in /etc/ ssh/ssh_config
PubkeyAcceptedKeyTypes ssh-dss
it also didn’t work and retur/ssh_config line 89 : Bad key types ‘ssh-dss’hanged ‘ssh-dss’ to ‘ssh-dsa’ or ‘id-dsa’ , but it still didn’t work Now i finished it myself by adding PubkeyAcceptedKeyTypes ssh-dss after Host * like
Host * PubkeyAcceptedKeyTypes ssh-dss
and i cloned it successfully
相关文章推荐
- git 在mac上使用git clone时每次需要输入密码的解决方案
- gitlab用户添加ssh免密钥认证后clone还是要求输入密码
- ssh链接git服务器,解决push pull要求输入密码问题
- [置顶] 利用公钥私钥解决Linux中git clone git库需要输入密码的问题
- linux初装ssh,使用expect建立信任关系,搞定烦人的输入密码或者要求yes/no建立指纹
- 使用ssh登录CentOS输入用户名后等待输入密码项慢
- 使用SSH方式免去Git每次push都输入用户名和密码
- 解决linux中使用git,ssh每次都要输入密码
- github使用(通过webstorm创建一个nodejs项目的本地git库,推送到github进行管理,(ssh密钥无用户密码方式))
- git使用ssh方式clone时候的,配置公钥和私钥的原理
- wi7下面配置 git bash使用ssh公钥/私钥登陆centos
- 使用ssh登录CentOS输入用户名后等待输入密码项慢
- 在不同的地方使用同一个ssh私钥以便用git进行版本控制
- 使用sshpass进行ssh/scp/sftp/自动输入密码
- 添加码云上的SSH公钥以及解决使用命令git pull/push 输入密码问题
- CentOS6.5设置完SSH免密码登录之后仍然要求输入密码的问题
- “ssh localhost”去掉输入密码(CentOS 6.3)
- vs2010 方便使用git的办法2-免输入密码设置
- Linux下SSH使用rsa认证方式省去输入密码
- SSH使用ssh-keygen远程登录主机免输入密码