spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
564 stars 102 forks source link

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

Closed thelaarn closed 1 year ago

thelaarn commented 2 years ago

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):

jordansitbon commented 2 years ago

UP

jordansitbon commented 2 years ago

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

mjmarley commented 2 years ago

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.

thelaarn commented 2 years ago

@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

karelkangro commented 2 years ago

.

hazeim254 commented 2 years ago

+1 the same issue

jordansitbon commented 1 year ago

UP

ckilb commented 1 year ago

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.

chasewwy commented 1 year ago

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

This worked for me

stiknoltz commented 1 year ago

@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

spatie-bot commented 1 year ago

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.