ray icon indicating copy to clipboard operation
ray copied to clipboard

Error invoking remote method 'connectSsh': Error: All configured authentication methods failed

Open thelaarn opened this issue 3 years ago • 10 comments

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:

  1. Go to 'Servers' tab (top right corner)
  2. Click on 'Add server'
  3. Setup a remote server with sftp using username/password
  4. Click on 'plug icon'

Expected behavior make a connection to the remote server

Screenshots image

Desktop (please complete the following information):

  • OS: macOS
  • Version 12.4

thelaarn avatar May 19 '22 23:05 thelaarn

UP

jordansitbon avatar Jun 10 '22 09:06 jordansitbon

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...

jordansitbon avatar Jun 10 '22 09:06 jordansitbon

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 avatar Jun 30 '22 22:06 mjmarley

@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

thelaarn avatar Jun 30 '22 22:06 thelaarn

.

karelkangro avatar Jul 07 '22 04:07 karelkangro

+1 the same issue

hazeim254 avatar Aug 13 '22 10:08 hazeim254

UP

jordansitbon avatar Aug 19 '22 13:08 jordansitbon

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.

ckilb avatar Sep 07 '22 17:09 ckilb

https://github.com/liximomo/vscode-sftp/issues/37#issuecomment-1120677928

This worked for me

chasewwy avatar Sep 18 '22 08:09 chasewwy

@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

stiknoltz avatar Sep 19 '22 15:09 stiknoltz

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.

spatie-bot avatar Jan 20 '23 11:01 spatie-bot