Displaying 2 results from an estimated 2 matches for "jumplin".
Did you mean:
jumpline
2018 Sep 14
2
sftp fails when run from cron
...It fails when run from cron.
Authentication with the remote server is set to use a private/public
key and does not require an explicit password.
Why does the authentication fail when run from cron?
----[ command ]----
/usr/bin/sftp -vv -P 1022 -p -o GSSAPIAuthentication=no \
-i /home/xxx/.ssh/jumpline \
-b /home/xxx/bin/sftp-sma-download-batch \
yyy at sohnen-moe.com
----[ end ]----
---[ sucessful login ]---
debug2: set_newkeys: mode 0
debug1: rekey after 4294967296 blocks
** the logs were the same for the two instances up to this point **
debug2: key: /home/xxx/.ssh/liferoot (0x559aaf93943...
2018 Sep 14
2
{DKIM Fail} Re: sftp fails when run from cron
...ommand line test after unsetting
> SSH_AUTH_SOCK
>
Okay. That reproduced the issue.
Is there a recommended way to provide the decryption passphrase?
$ export SSH_AUTH_SOCK=""
$ bin/sftp-sma-download
command: /usr/bin/sftp -P 1022 -p -o GSSAPIAuthentication=no -i
/home/xxx/.ssh/jumpline -b /home/xxx/bin/sftp-sma-download-batch
yyy at sohnen-moe.com
yyy at sohnen-moe.com: Permission denied (publickey).
Connection closed
SFTP did not go well [255]
$ export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
$ bin/sftp-sma-download
command: /usr/bin/sftp -P 1022 -p -o GSSAPIAuthen...