Differences

This shows you the differences between the selected revisions of the page.

2013-12-06 2014-02-05
no summary (140.251.69.33) session url should end with slash (martin)
Line 126: Line 126:
option confirm off option confirm off
# Connect using a password # Connect using a password
-# open sftp://user:password@example.com -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+# open sftp://user:password@example.com/ -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Connect # Connect
-open sftp://user@example.com -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+open sftp://user@example.com/ -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory # Change remote directory
cd /home/user cd /home/user
Line 138: Line 138:
close close
# Connect as a different user # Connect as a different user
-open sftp://user2@example.com+open sftp://user2@example.com/
# Change the remote directory # Change the remote directory
cd /home/user2 cd /home/user2
Line 155: Line 155:
For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch: For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch:
<code> <code>
-winscp.exe /console /command "option batch abort" "open sftp://user@example.com" "get examplefile.txt d:\" "exit"+winscp.exe /console /command "option batch abort" "open sftp://user@example.com/" "get examplefile.txt d:\" "exit"
</code> </code>

Last modified: by martin