Re: {DKIM Fail} Re: sftp fails when run from cron

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On 09/13/2018 07:54 PM, Darren Tucker wrote:

> I'd guess that the reason it doesn't work is that the key is encrypted
> and neither the agent nor a tty to ask for the decryption passphrase
> is available.  Try repeating your command 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@xxxxxxxxxxxxxx
yyy@xxxxxxxxxxxxxx: 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 GSSAPIAuthentication=no -i
/home/xxx/.ssh/jumpline -b /home/xxx/bin/sftp-sma-download-batch
yyy@xxxxxxxxxxxxxx
sftp> #
sftp> cd /home/YYY/sma/db
etc...

-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux