I want to use sftp in order to download some files from a remote server. My case is the following:
1. username: user123
2. pass: pass123
3. remote server: ftp.myserver.com
The commands I want to send after the connection are:
2. cd mydir
3. get myfile
I want to write a script to automate this procedure using cron.
Any help regarding the sftp command line abilities would be appreciated.