joelspadin / vscode-remote-x11

Visual Studio Code extension that sets the DISPLAY environment variable in remote workspaces
39 stars 9 forks source link

Error: Running the contributed command: 'remote-x11-ssh.connect' failed. #47

Open Mactarvish opened 3 years ago

Mactarvish commented 3 years ago

I'm trying to use Remote X11 to show some images from server using python. After I installed it, the output is below:

Remote X11 (SSH) says: Connecting to work@192.168.24.179 port 22 Error: Timed out while waiting for handshake

Remote X11 says: Setting up display for remote "ssh-remote". Connecting with SSH. See Remote X11 (SSH) logs for more details. Error: Running the contributed command: 'remote-x11-ssh.connect' failed.

How to solve it? Thanks.

joelspadin commented 3 years ago

That generally means it wasn't able to connect to that address and port. Either the address is incorrect or the remote device blocked the connection.

The official remote SSH extension now has support for X11 forwarding. The first thing I'd try is disabling my extension and following https://github.com/microsoft/vscode-docs/blob/main/remote-release-notes/v1_54.md#ssh to see if that works.

Mactarvish commented 3 years ago

Thanks, I'll try your method first.