lavv17 / lftp

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

lftp promps for password even if password is supplied #710

Closed N4tus closed 10 months ago

N4tus commented 10 months 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 10 months ago

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