Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D:lftp>bash
- bash-4.1# export PATH=.
- bash-4.1# lftp sftp://user:pass@somehost.com
- lftp user@somehost.com:~> put -c cx160sd.flv
- 194749860 bytes transferred in 112 seconds (1.67M/s)
- lftp user@somehost.com:/> exit
- bash-4.1# exit
- exit
- D:lftp>
- c:pscp.exe -pw [your password] -batch -sftp someuser@example.com:/* c:yourlocation
- # Sample SFTP script
- set remotehost=edtmobile
- set user=javaftp
- set password=javaftp
- set protocol=sftp
- set localdir=D:worktmp
- # connect to the server
- open
- # change dir
- cd remote/test
- # put the local file test.txt to the server as mytest.txt
- put test.txt mytest.txt
- # disconnect
- close
Add Comment
Please, Sign In to add comment