h3imdall / ftp-remote-edit

Edit files on ftp servers with Atom editor and without a workspace.
MIT License
178 stars 27 forks source link

All configured authentication methods failed with ssh key #431

Open janstieler opened 2 years ago

janstieler commented 2 years ago

Hi, I tried to use a ssh key for connecting to my sftp. But I got the error All configured authentication methods failed. My config is this: Bildschirmfoto 2021-11-15 um 22 30 Kopie I have read here some other issues with the same problem but they didn't help me. So if someone have an idea what I do wrong pls answer my issue.

Cheers PS: The hostfield is only for here empty.

MauryJohnson commented 2 years ago

Hey,

I had the same issue using ftp-remote-edit, but I was able to get it to work by doing the following:

  1. Go to the ftp-remote-edit settings menu and select "Open Config Folder" option. image

  2. Find the .atom/packages/ftp-remote-edit directory, find the file named "package.json" and edit it. image

  3. Find the keyword "ssh2" and replace "^0.8.2" with "0.8.2". image

  4. Save, restart atom and try to connect to your ssh server again.

melgibson1337 commented 1 year ago

Hi,

Replacing "^0.8.2" with "0.8.2" didn't work for me.

I've got some old servers on ubuntu 20.04 and some new ones on 22.04

New servers: OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022

Older servers: OpenSSH_8.2p1 Ubuntu-4ubuntu0.7, OpenSSL 1.1.1f 31 Mar 2020

Old servers work fine, new servers will return: "All configured authentication methods failed"

Filezilla also works fine on all servers. This means the problem must be that the OpenSSH 8.9 version is not compatible with FTP-Remote-Edit's ssh2 version at this moment.

FIX:

  1. set the latest ssh2 version in the package.json. e.g. "ssh2": "^1.14.0"
  2. save file and close Pulsar
  3. navigate to the \.pulsar\packages\ftp-remote-edit\node_modules directory and open command prompt there
  4. run: npm install ssh2 (make sure you have nodejs installed)

It works now.

markeclaudio commented 6 months ago

Quick way to temporary fix until they approve my pull request:

Go to .pulsar\packages\ftp-remote-edit\node_modules\ssh2 and rename it to .pulsar\packages\ftp-remote-edit\node_modules\ssh2.old.

Now unzip the archive from https://github.com/mscdex/ssh2/archive/refs/tags/v0.8.9.zip and rename the folder in ssh2.