[英]AWS EC2: SSH works but I am unable to use my VNC
I am running a Linux EC2 instance with TigerVNC viewer.我正在使用 TigerVNC 查看器运行 Linux EC2 实例。 This has worked for about six months until my EC2 instance recorded an error and I had to stop it from the Instance Console.
这已经工作了大约六个月,直到我的 EC2 实例记录了一个错误,我不得不从实例控制台停止它。 I have restarted, but am now unable to access the GUI.
我已重新启动,但现在无法访问 GUI。 SSH access from the console works and I can run commands in the terminal.
SSH 从控制台访问有效,我可以在终端中运行命令。 I have checked the 'vncserver:1' command and am told that a VNC server is running, but when I open TigerVNC it crashes before asking for a password with the terminal error 'channel 3: open failed: connect failed: Connection refused'.
我检查了“vncserver:1”命令,并被告知 VNC 服务器正在运行,但是当我打开 TigerVNC 时,它在要求输入密码之前崩溃,并出现终端错误“通道 3:打开失败:连接失败:连接被拒绝”。 Has anyone encountered a similar problem?
有没有人遇到过类似的问题?
After more digging, the solution is to remove an X11 file.经过更多的挖掘,解决方案是删除一个 X11 文件。 The following line in the terminal after using the ssh worked 'rm -rvf /tmp/.X11-unix/X1'.
使用 ssh 后终端中的以下行工作“rm -rvf /tmp/.X11-unix/X1”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.