Error invoking remote method 'connectSsh': Error: All configured authentication methods failed
Describe the bug
Cannot connect to a remote server and get the error message.
Error: Error invoking remote method 'connectSsh': Error: All configured authentication methods failed
Versions Ray version (you can see this in "About Ray"): 2.0.1
PHP version: 8.0
To Reproduce Steps to reproduce the behavior:
- Go to 'Servers' tab (top right corner)
- Click on 'Add server'
- Setup a remote server with sftp using username/password
- Click on 'plug icon'
Expected behavior make a connection to the remote server
Screenshots

Desktop (please complete the following information):
- OS: macOS
- Version 12.4
UP
I've the same problem. One of my 3 servers can't connect correctly.
Forge Ubuntu 22.04 server with PHP 8.1 macOS 12.4 - Ray 2.0.1
The SSH connection in terminal works fine with my id_rsa...
I see from the above screenshot you were trying to connect to WPEngine. Did you get ever this working because I have the same error. Thank you.
@mjmarley No, it still doesn't work and I've tried Digital Ocean droplet as well as Linode VPS server. All get the same error. Hoping @freekmurze or someone from the dev team can take a look at the issue soon.
Similar to jordansitbon above I can ssh in with out an issue
.
+1 the same issue
UP
Same here. UP
Edit: For some of my servers it works, for some it doesn't. A workaround for me is to create a new SSH user on the server that uses password authentication instead of SSH keys.
https://github.com/liximomo/vscode-sftp/issues/37#issuecomment-1120677928
This worked for me
@chasewwy I can confirm that this solved the issue for me as well.
It seems to be specific to an sshd configuration change for Ubuntu 22.04
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.