ubuntu下ssh连接错误

ubuntu下ssh连接远程服务器报错:

Received disconnect from 101.201.45.114 port 22:2: Too many authentication failures for git
Connection to 101.201.45.114 closed by remote host.
fatal: Could not read from remote repository.

 

解决方法:

打开终端,输入以下命令:
1、touch /Users/username/.ssh/config
2、vi /Users/username/.ssh/config(编辑config文件)
3、在文件中输入
Host jenkins
HostName jenkins.example.com
User domainuser
IdentitiesOnly yes
0 Comments
Leave a Reply