Guest User

Untitled

a guest
Jun 11th, 2018
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. D:lftp>bash
  2. bash-4.1# export PATH=.
  3. bash-4.1# lftp sftp://user:pass@somehost.com
  4. lftp user@somehost.com:~> put -c cx160sd.flv
  5. 194749860 bytes transferred in 112 seconds (1.67M/s)
  6. lftp user@somehost.com:/> exit
  7. bash-4.1# exit
  8. exit
  9.  
  10. D:lftp>
  11.  
  12. c:pscp.exe -pw [your password] -batch -sftp someuser@example.com:/* c:yourlocation
  13.  
  14. # Sample SFTP script
  15. set remotehost=edtmobile
  16. set user=javaftp
  17. set password=javaftp
  18. set protocol=sftp
  19. set localdir=D:worktmp
  20.  
  21. # connect to the server
  22. open
  23.  
  24. # change dir
  25. cd remote/test
  26.  
  27. # put the local file test.txt to the server as mytest.txt
  28. put test.txt mytest.txt
  29.  
  30. # disconnect
  31. close
Add Comment
Please, Sign In to add comment