lftp file configuration and stored password

2.8k Views Asked by At

I am connecting to some ftp server with lftp.

lftp -u login,password -e "ls /someFolderOnTheServer" bla.node.org"

Does someone know how I can setup things such that the login and the password are read from some configuration file instead ?

many thanks for your valuable help.

1

There are 1 best solutions below

3
On

Yes, it's possible. Use ~/.netrc file.