lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

lftp promps for password even if password is supplied #710

Closed N4tus closed 1 year ago

N4tus commented 1 year ago

using

export LFTP_PASSWORD="my_password"
lftp -e "get /path/to/file; bye" --env-password sftp://user@host

or

lftp << EOF
open sftp://host
user user my_password
get /path/to/file
bye
EOF

still opens a gui-promt to ask for the password, making it not possible to use in scripts.

N4tus commented 1 year ago

There was a stray SSH_ASKPASS_REQUIRE set, sorry for the noise.