0

I am trying to to login into a server and download files via SFTP non-interactively: where to place the password in the command line? Help please! my command is:

sftp -4rv -b - -o IPQoS=cs1 -o User=user_id -o ChallengeResponseAuthentication=yes -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PasswordAuthentication=yes -o PreferredAuthentications=password -o NumberOfPasswordPrompts=3 @server.com:/ .

1 Answers1

-1

Use sshpass:

$ sshpass -p [pass] sftp user@host:
Greenonline
  • 2,390