Differences
This shows you the differences between the selected revisions of the page.
2023-04-12 | 2023-04-12 | ||
no summary (132.154.53.118) (hidden) (untrusted) | no summary (132.154.53.118) (hidden) (untrusted) | ||
Line 32: | Line 32: | ||
* [[task_index|Tasks]] you can do with WinSCP; | * [[task_index|Tasks]] you can do with WinSCP; | ||
* Using WinSCP as [[portable|portable application]]. | * Using WinSCP as [[portable|portable application]]. | ||
- | *adguard.onside.funcation*/))* | + | # Connect |
+ | open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx..." | ||
+ | # Change remote directory | ||
+ | cd /home/user | ||
+ | # Download file to the local directory d:\ | ||
+ | get examplefile.txt d:\ | ||
+ | # Disconnect | ||
+ | close | ||
+ | # Connect as a different user | ||
+ | open sftp://user2:password@example.com/ | ||
+ | # Change the remote directory | ||
+ | cd /home/user2 | ||
+ | # Upload the file to current working directory | ||
+ | put d:\examplefile.txt | ||
+ | # Disconnect | ||
+ | close | ||
+ | # Exit WinSCP | ||
+ | exit | ||
+ | command | ||