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