Skip to content

Instantly share code, notes, and snippets.

@amindadgar
Created June 23, 2021 08:03
Show Gist options
  • Save amindadgar/15948c9b611aaa1543e40ef75c68dc20 to your computer and use it in GitHub Desktop.
Save amindadgar/15948c9b611aaa1543e40ef75c68dc20 to your computer and use it in GitHub Desktop.
SSH FILE TRANSFER
# Use scp command to send from client to ssh server
# My os is windows and ssh server is linux
scp F:\myfile.txt root@[root ip]:/etc/myfolder/myfile.opt
@amindadgar
Copy link
Author

And to receive from SSH server use this command
We're receiving myfile.opt to C:\download\myfile.opt

pscp.exe -pw MyPassword root@[ssh ip]:/etc/myfolder/myfile.opt C:\download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment