I'm trying to connect to an sftp server, but am unable to do so through a bash script. the server is expecting ssh key authentication by default and i'd like to do UserName/Password auth. Is there a way i can specify the type of auth i want to use and if so what are some examples? Such as:
I've tried using the -o options, but am not sure i got the syntax right.
also, i interactivly try and connect to the sftp server it will prompt me for a password and when i enter it, it's just fine.
i'm running the bash script on Linux machine which is trying to connect to a sftp server running on windows machine.