2

Is there a solution that allows automatic SFTP user/password login?

I thought that was possible just by putting a .netrc file in $HOME but unfortunately it's not working on SFTP.

Has anyone else faced this problem?

achraf
  • 101

1 Answers1

2

SFTP is based on SSH, so you can use the standard SSH key files. See ssh-keygen(1) and ssh_config(5).

If you're dependent on password authentication you could use another SFTP client like lftp or curl to which you can provide the password through a command line parameter or configuration file.

joschi
  • 21,665