收到错误“身份验证失败太多"通过vnc查看器连接到AWS EC2 [英] Get error "Too many authentication failures" by connecting to AWS EC2 through vnc viewer
问题描述
我已经使用基于ubuntu 14.04的AWS EC2设置了一个环境,并在其下配置 vncserver
.完成所有操作后,我可以将EC2 instance
与VNC Viewer连接并查看桌面.但是,在 vncviewer
上闲置了一段时间之后,连接断开,并且出现错误
I have set up an environment with AWS EC2 based on ubuntu 14.04 and configure vncserver
under it. After everything is done, I am able to connect the EC2 instance
with VNC viewer and see the desktop. However, after a period of time idle on vncviewer
, the connection is disconnected and I have error
身份验证失败太多"
"Too many authentication failures"
在通过ssh到EC2重新启动 vncserver
之后,我能够使用 vncviewer
再次连接到实例.对我来说,没有错误并且连接没有断开的任何解决方案?
After I restart the vncserver
by going through ssh to EC2, I am able to use vncviewer
to connect to the instance again. Any solution for me to not having the error and connection is not disconnected?
推荐答案
我遇到了同样的情况.对我而言,这是因为在我的服务器上正在运行多个 vncserver
会话.请执行以下步骤...
I faced the same scenario. For me this happened because, multiple sessions of vncserver
was running on my Server. Do the following steps...
步骤1:查看服务器上正在运行的多个VNC会话.
您将看到多个正在运行的进程ID.(否则,请继续执行以下步骤)
You will see multiple process IDs running. (If not, still proceed to the next steps)
$ pgrep vnc
72063
119177
这是因为您已在服务器上多次运行 vncserver
命令.
This is because you have run vncserver
command multiple times on the server.
第2步:杀死第1步中的所有进程
$ kill 72063
$ kill 119177
第3步:重新启动VNC会话
$ vncserver
第4步:验证其是否正常运行.
$ nc 104.197.91.140 5901
// alternatively you can use telnet
$ telnet 104.197.91.140 5901
// the response should like this
RFB 003.008
- 只需尝试再次加载VNC查看器会话
这篇关于收到错误“身份验证失败太多"通过vnc查看器连接到AWS EC2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!