Received disconnect from x.x.x.x: 2: Too many authentication failures for x
2013-12-16 12:13
429 查看
公司要求脚本需要在jenkins平台定期运行,苹果mac在连接jenkins的过程中出现了各种问题,各种头大,不过最后还是解决了。我用的苹果系统是OS X 10.8.5
问题一:
问题一:
Permission denied (publickey,keyboard-interactive). 解决方法:修改/private/etc/sshd_config文件 将PasswordAuthentication前边的#去掉,并改为yes PasswordAuthentication yes 接着出现了问题二: Received disconnect from x.x.x.x: 2: Too many authentication failures for x 百度、google了很多,解决方法如下: 打开终端,输入以下命令: [code]1、touch /Users/username/.ssh/config 2、
vi /Users/username/.ssh/config(编辑config文件) 3、在文件中输入
Host jenkins HostName jenkins.example.com User domainuserIdentitiesOnly yes 保存 4、在jenkins中构建自己的脚本即可。 注意:jenkins构建中,Execute shell配置远程登录的用户名要与domainuser保持一致 参考文档: https://kb.mediatemple.net/questions/1625/Using+an+SSH+Config+File http://wesdeboer.com/received-disconnect-from-too-many-authentication-failures-for-ubuntu/ 查看调试信息,只需要在ssh命令后加上-vvv即可。 一个比较好的讲述ssh配置的文章: http://blog.chinaunix.net/uid-16728139-id-3265394.html
相关文章推荐
- Mac环境下终端(Terminal)用ssh 连接服务器问题 Received disconnect from 120.55.x.x: 2: Too many authentication failures for root
- Received disconnect from xx.xxx.xx.xx port 22:2: Too many authentication failures
- SSH File Transfer遇到错误SSH_MSG_DISCONNECT: 2 Too many authentication failures for root
- Fecure SSH遇到错误"too many authentication failures for root"
- Fecure SSH遇到错误"too many authentication failures for root"
- ssh err: "Too many authentication failures for "users""
- Linux用ssh登陆出现“Too many authentication failures for root”
- Too many authentication failures for
- F-Secure SSH File Transfer遇到错误"too many authentication failures for root"
- ssh 返回错误 Too many authentic authentication failures for root 的时候检查 ssh 配置
- Too many authentication failures for user
- Too many authentic authentication failures for root
- F-Secure SSH File Transfer遇到错误"too many authentication failures for root"
- SSH File Transfer遇到错误"too many authentication failures for root".A protocol error was detected......
- Too many authentication failures for xxxx_username
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection message from server: "Too many connections";
- Data source rejected establishment of connection, message from server: "Too many connections"解决办法
- zookeeper NIOServerCnxn: Too many connections from IP- max i
- BB = BB[sorted_ind, :] IndexError: too many indices for array