yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

Error: All configured authentication methods failed #463

Open miztizm opened 6 years ago

miztizm commented 6 years ago

remote ftp and remote sync is giving me a error

[19:48:23] Connecting: xxxx@xxxx:22
Error: All configured authentication methods failed

all configuration is working in winscp fine. Server Side (freebsd):

Dec  4 19:47:48 war sshd[28404]: Received disconnect from xxxx port 7755:11:  [preauth]
Dec  4 19:47:48 war sshd[28404]: Disconnected from xxxx port 7755 [preauth]

by default with winscp successfull entry is

Dec 4 19:49:48 war sshd[28424]: Accepted keyboard-interactive/pam for tux from xxxx port 9162 ssh2

UPDATE: With remote ftp i get succusefull connected by settings those too variables:

    "keyboardInteractive": false,
    "keyboardInteractiveForPass": true,

any clues or ideas about remote sync? thanks

daverickdunn commented 6 years ago

It's hard to say for sure what's causing it, but as your comment mentions, winscp uses keyboard-interactive/pam authentication. I haven't looked at the auth code in this package, but I'm guessing it isn't able to handle this specific type of authentication.

There are two options I'd consider, assuming I'm correct. The first is to use public/private key authentication instead of username/password. The second is to configure your ssh server to a protocol that this package can authenticate with, i.e. disable the challenge / response dialogue.

This thread discusses a similar (but not the same) issue: https://serverfault.com/questions/783082/how-to-use-the-ssh-server-with-pam-but-disallow-password-auth