Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftpgrab fails to authenticate while curl is OK with the same credentials #131

Closed
peterhoeg opened this issue Oct 7, 2020 · 2 comments
Closed

Comments

@peterhoeg
Copy link

Behaviour

ftpgrab is unable to connect to a 3rd party server which we can otherwise connect using curl with the same credentails.

We are both sending and receiving data.

  • The sending is handled by curl which works fine.
  • ftpgrab fails with "unable to authenticate".

Only sftp is allowed to the server.

Steps to reproduce this issue

  1. run ftpgrab
  2. observe the failure

Expected behaviour

That ftpgrab would connect or at least show additional information about what exactly failed.

Actual behaviour

FTL Cannot create grabber error="Cannot connect to server: Cannot open ssh connection: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain"

Configuration

  • FTPGrab version: 7.1.0
  • Platform: linux
  • System info: Linux ******* 5.4.28 Syntax error #1-NixOS SMP Wed Mar 25 07:26:00 UTC 2020 x86_64 GNU/Linux
  • Remote FTP: unknown

Logs

Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC INF Starting FTPGrab version=7.1.0
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC INF Configuration loaded from file: /nix/store/mcwy0yj1w7nxmbbf7zxh9q8r28cwci4b-ftpgrab.yml
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC DBG No FTPGRAB_* environment variables defined
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC DBG {
Oct 07 12:44:38 ****** pull[3596268]:   "db": {
Oct 07 12:44:38 ****** pull[3596268]:     "path": "/var/lib/******/ftpgrab.db"
Oct 07 12:44:38 ****** pull[3596268]:   },
Oct 07 12:44:38 ****** pull[3596268]:   "server": {
Oct 07 12:44:38 ****** pull[3596268]:     "sftp": {
Oct 07 12:44:38 ****** pull[3596268]:       "host": "********",
Oct 07 12:44:38 ****** pull[3596268]:       "port": 22,
Oct 07 12:44:38 ****** pull[3596268]:       "username": "********",
Oct 07 12:44:38 ****** pull[3596268]:       "passwordFile": "/run/keys/*******",
Oct 07 12:44:38 ****** pull[3596268]:       "sources": [
Oct 07 12:44:38 ****** pull[3596268]:         "/outgoing"
Oct 07 12:44:38 ****** pull[3596268]:       ],
Oct 07 12:44:38 ****** pull[3596268]:       "timeout": 5000000000,
Oct 07 12:44:38 ****** pull[3596268]:       "maxPacketSize": 32768
Oct 07 12:44:38 ****** pull[3596268]:     }
Oct 07 12:44:38 ****** pull[3596268]:   },
Oct 07 12:44:38 ****** pull[3596268]:   "download": {
Oct 07 12:44:38 ****** pull[3596268]:     "output": "/storage/*****/in",
Oct 07 12:44:38 ****** pull[3596268]:     "chmodFile": 420,
Oct 07 12:44:38 ****** pull[3596268]:     "chmodDir": 493,
Oct 07 12:44:38 ****** pull[3596268]:     "retry": 3,
Oct 07 12:44:38 ****** pull[3596268]:     "hideSkipped": false,
Oct 07 12:44:38 ****** pull[3596268]:     "createBaseDir": false
Oct 07 12:44:38 ****** pull[3596268]:   },
Oct 07 12:44:38 ****** pull[3596268]:   "notif": {
Oct 07 12:44:38 ****** pull[3596268]:     "mail": {
Oct 07 12:44:38 ****** pull[3596268]:       "host": "******",
Oct 07 12:44:38 ****** pull[3596268]:       "port": 25,
Oct 07 12:44:38 ****** pull[3596268]:       "ssl": false,
Oct 07 12:44:38 ****** pull[3596268]:       "insecureSkipVerify": false,
Oct 07 12:44:38 ****** pull[3596268]:       "from": "********",
Oct 07 12:44:38 ****** pull[3596268]:       "to": "*******"
Oct 07 12:44:38 ****** pull[3596268]:     }
Oct 07 12:44:38 ****** pull[3596268]:   }
Oct 07 12:44:38 ****** pull[3596268]: }
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC DBG 1 notifier(s) created
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC DBG 0 entries found in database
Oct 07 12:44:38 ****** pull[3596268]: Wed, 07 Oct 2020 12:44:38 UTC FTL Cannot create grabber error="Cannot connect to server: Cannot open ssh connection: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain"
@crazy-max
Copy link
Owner

@peterhoeg

we can otherwise connect using curl with the same credentails.

Can you give me the full curl command please?

Cannot open ssh connection: ssh: handshake failed

Can you give me more info about the remote server? (os: Debian/Ubuntu/Alpine ; ssh server: OpenSSH/Dropbear ; config ssh)

@peterhoeg
Copy link
Author

Sorry to stay offline for so long. I have moved to lftp instead as we can do both the pushing and pulling with that although I really do like the idea of the declarative configuration with ftpgrab rather than scripting.

I have no details of the other side - it's not controlled by us.

Would you like me to close this considering I cannot give you much more information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants