-1

I know that I can transfer files over sftp username@server, but is it possible to send the password with? something Like sftp --password test username@server

I already searched but I didn't find an easy way.

Regards, Akitoyo

Akitoyo
  • 1
  • 2

1 Answers1

0

Use ssh keys. If you really want password based login you could use expect.

Nevertheless this question should be on superuser/serverfault not stackoverflow.

ooxi
  • 3,159
  • 2
  • 28
  • 41