I am trying to connect via SFTP to remote server and hitting this error. Wondering what's going on here. I see a similar issue still open from 2015 (https://github.com/mgrenier/remote-ftp/issues/83), has there been a fix/workaround for this.
I am connecting to remote using username-password pair. Able to connect via FileZilla.
Thanks!
Can you post more details about your exact setup? Specifically about the key and how it was generated. There could be some sort of incompatibility based on the type of encryption you use.
If I'm able to re-create the problem, I (or someone else) could possibly help find a solution.
@samifouad can you share your .ftpconfig file ??
I guess you might be missing
"privatekey": "/path/to/private/key"
And It should have 644 permission as well.
I am not using key-pairs to login, authenticating via a central ldap server to connect to my box.
This is how my .ftpconfig looks like:
{
"protocol": "sftp",
"host": "hostname.blah.blah.blah",
"port": 22,
"user": "anusrat",
"pass": "*",
"promptForPass": false,
"remote": "/home/anusrat",
"local": "",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": true,
"watch": [],
"watchTimeout": 500
}
Same here
If you are not using keys, config is ignoring password auth
@anusrat
I am not using key-pairs to login, authenticating via a central ldap server to connect to my box.
This is how my .ftpconfig looks like:
{
"protocol": "sftp",
"host": "hostname.blah.blah.blah",
"port": 22,
"user": "anusrat",
"pass": "*******",
"promptForPass": false,
"remote": "/home/anusrat",
"local": "",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": true,
"watch": [],
"watchTimeout": 500
}
Looks good to me. Could be a server problem, what server are you trying to connect to, what SFTP/FTP package does it run? ServerOS? Are you able to connect to other SFTP servers?
I am having the same issue with 1.2.6 with the following .ftpconfig. When I revert back to 1.2.4 all is fine (and I have sftp access to this host from command line/Tecta clients as well). I've tried suggestions I've seen in other posts but no luck so far. Any advice/recommendations? Thanks
{
"protocol": "sftp",
"host": "blahblah",
"port": 22,
"user": "ME",
"pass": "pass",
"promptForPass": true,
"remote": "/icgcmpl/compliance",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 90000,
"keepalive": 10000,
"keyboardInteractive": true,
"watch": [],
"cipherFix": true
}
@unixjkn Try this config:
"promptForPass": false,
"keyboardInteractiveForPass": true,
The new options use default pass property if keyboardInteracive enable.
https://github.com/icetee/remote-ftp/commit/e75e137979be7f023a9868ffd43595909f9bbf35
@icetee Thanks! working just fine now.
well, when i tried this configuration
"promptForPass": false,
"keyboardInteractiveForPass": true,
I failed! How to solve this problem, maybe you should try this
"promptForPass": true,
"keyboardInteractive": true,
"keyboardInteractiveForPass": false,
I don't know why, but i succeeded!
Most helpful comment
@unixjkn Try this config:
The new options use default
passproperty if keyboardInteracive enable.https://github.com/icetee/remote-ftp/commit/e75e137979be7f023a9868ffd43595909f9bbf35