To download Files From Remote to local via command line normally we use scp.
To copy all from Local Location to Remote Location (Upload)
scp -r /path/from/destination username@hostname:/path/to/destination
Copy on current directory from Remote to Local
scp -r username@hostname:/path/from/file .
To download a single file the command will be:
scp user@your.server.example.com:/path/to/foo/file.name /home/user/Desktop/
To download a single file the command will be:
scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/
Help:
-r
Recursively copy all directories and files- Always use full location from
/
, Get full location bypwd
scp
will replace all existing fileshostname
will be hostname or IP address- if custom port is needed (besides port 22) use
-P portnumber
- . (dot) - it means current working directory, So download/copy from server and paste here only
Comments
Post a Comment