简体   繁体   English

AWS EC2:SSH 工作,但我无法使用我的 VNC

[英]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.

相关问题 我无法在 AWS EC2 实例中托管我的网站 - I am unable to host my website in AWS EC2 instance 如果我没有使用默认vpc,如何SSH到我的EC2 - How to ssh to my ec2 if i am not using default vpc AWS ec2 实例无法在 ssh 内部 - AWS ec2 instance unable to ssh inside 我不能 SSH 到我的 Linux EC2 实例从我的 IP 建议由 AWS。 如果传入规则设置为::0 则有效 - I cannot SSH to my Linux EC2 Instance from My IP suggested by AWS. It works if incoming rule is set to ::0 我可以配置 my.ssh/config 文件以使用我的 aws pem 文件作为所有 ec2 连接的默认值吗 - Can I configure my .ssh/config file to use my aws pem file as default for all ec2 connections 为什么我不能ssh到我使用AWS CloudFormation创建的AWS ec2实例? - Why I could not ssh to my AWS ec2 instance that I created using AWS CloudFormation? 无法通过SSH连接到AWS EC2实例上运行的MongoDB - Unable to connect to MongoDB running on AWS EC2 instance via SSH 无法使用 SSH 连接 AWS EC2 实例 - Unable to connect AWS EC2 Instance using SSH 无法通过 SSH 连接到 AWS EC2 实例:操作超时 - Unable to SSH into AWS EC2 Instance: Operation timed out 无法在实例元数据关闭的情况下将 SSH 插入 AWS EC2 实例 - Unable to SSH into AWS EC2 instance with instance metadata turned off
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM