博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SSH returns “too many authentication failures” error – HostGator
阅读量:7183 次
发布时间:2019-06-29

本文共 1666 字,大约阅读时间需要 5 分钟。

I am an avid fan of using  for small business WordPress website hosting. I love that they use a standard CPanel installation and I can get SSH access, it’s quick and easy – a diet VPS/dedicated server if you will.

I have been having an issue I’ve never seen before, when attempting to connect, e.g.:

ssh -p 2222 username@12.34.56.78

I was receiving the following error:

Received disconnect from 12.34.56.78: 2: Too many authentication failures for username

Why I Got This Too Many Authentication Failures Error

Recently, I started working on a  that involved two  , in working with their dev team, I started using  and authenticating with SSH keys.

After a few hours back and forth with support, troubleshooting IP blacklists and user errors, we realized it was key conflict that was troubling things. I temporarily moved these keys out of the~/.ssh/ directory and I was okay – until I reset them and they were stored in my OS X keychain.

Even moving them or deleting them did nothing. I also want to keep these keys intact because I use them to authenticate with Git and some of my project servers.

How I Fixed It

Thanks to  on , I realized there’s a nice little flag for options I can send:-o PubkeyAuthentication=no.

By using this flag, I can have the connection disregard public key authentication all together and allow me to go straight to user/pass login. The final command:

ssh -p 2222 -o PubkeyAuthentication=no username@12.34.56.78

Note: the -p 2222 is only required for HostGator in this case, as SSH is restricted to port 2222. Feel free to remove or modify the port flag to your liking – I hope this helps you!

转载于:https://www.cnblogs.com/fatt/p/5121080.html

你可能感兴趣的文章
7.2存储分配策略
查看>>
java配置文件的读取写入的解决方案(getResourceAsStream的用法)
查看>>
无线WIFI无法正常启动问题
查看>>
nginx启动脚本
查看>>
保证Linux Apache Web服务器安全的10个建议
查看>>
mysql-5.6.20 源码安装的一些问题
查看>>
Nginx与Apache、Tomcat、Resin动静分离核心配置
查看>>
Sublime Text使用入门8——扩展之命令
查看>>
EasyUI:easyui-combobox(清除选中项)
查看>>
window.location使用
查看>>
thinkphp框架开启页面gzip压缩
查看>>
gcc and g++分别是gnu的c & c++编译器
查看>>
centos 例行性工作转发外部邮箱
查看>>
工作中使用了一些触发器
查看>>
[每日一题] 11gOCP 1z0-052 :2013-09-7 The usage of the SQL*LOAD utility.............................
查看>>
我的友情链接
查看>>
async & await 的前世今生(Updated)
查看>>
揭开云“误”山的面纱
查看>>
Lua5.0 词法分析
查看>>
Solutions Log (2014-08)
查看>>