joelspadin / vscode-remote-x11

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

All configured authentication methods failed #62

Open dstone42 opened 2 years ago

dstone42 commented 2 years ago

I have set this up to connect to the server with my work, but it isn't working. When I first installed it I got similar errors that popped up in the bottom right of the screen. Now when I check the logs, I see this: Setting up display for remote "ssh-remote". Connecting with SSH. See Remote X11 (SSH) logs for more details. Error: All configured authentication methods failed and Connecting to stoned4@128.187.49.40 port 22 Error: All configured authentication methods failed

My organization requires us to use a password and two-factor-authentication to login, so I don't know if it will allow me to authenticate using ssh-keys. There was an authorized_keys file, so I added my ssh key that I usually use for other servers to the end of the file, but it didn't seem to make a difference. My boss is able to use X forwarding on his Mac using the same server, but I am on a PC.

dstone42 commented 2 years ago

Update: Every time I login to the server now, I get this message: "Failed to get DISPLAY: Error: All configured authentication methods failed"

Liuyaguangzz commented 2 years ago

I meet the same problem. Before, I used my Win10 PC to connect to a centos server, and I used ssh agent as the remoteX11.SSH.authenticationMethod. There was no problem. Just now, when I logged on another Ubuntu computer in the same way, I was prompted "Failed to get DISPLAY: Error: All Configured authentication methods failed". They use the same ssh-key, and I'm sure I put the public key in the authorized_keys file. I can connect it using the openssh build-in win10 without password. And I can connect it by Xshell and VcXsrc to use GUI. But it still give me the message"Failed to get DISPLAY: Error: All Configured authentication methods failed". I'm going crazy.

soul667 commented 1 year ago

i am going crazy too,long time ago ,it all fine on my another computer,but when i buy a new computer and wang to configure it,it throw the same error as you show,just now,i really want to *** the author.