Winter Bootcamp in ML and IoT in Jaipur
 Course content (For Bootcamp & Winter Training):- Machine Learning (ML) || Internet of Things (IoT) || Register for winter bootcamp
0 like 0 dislike
in Tutorial & Interview questions by (3.1k points)

1 Answer

0 like 0 dislike
by (3.1k points)
 
Best answer

Secure Copy

scp command is used to securely copy a file to or from a remote destination. If the file is in current working directly only filename is sufficient else full path is required which included the remote hostname e.g. remote_user@some_server.org:/path/to/file 

Copy local file in your CWD to new directory 

scp localfile.txt /home/friend/share/ 

Copy remote file to you current working directory 

scp rocky@arena51.net:/home/rocky/game/data.txt ./ 

Copy file from one remote location to another remote location

scp mars@universe.org:/beacon/light/bitmap.conf jupiter@universe.org:/beacon/night/ 

To copy directory and sub-directories use '-r' recursive option to scp 

scp -r user@192.168.0.4:~/project/* ./workspace/ 

 Basic Usage 

# Copy remote file to local dir 

scp user@remotehost.com:/remote/path/to/foobar.md /local/dest 

# Copy local file to remote dir 

scp foobar.md user@remotehost.com:/remote/dest 

# Key files can be used (just like ssh)

 scp -i my_key.pem foobar.md user@remotehost.com:/remote/dest

Winter 10 Days bootcamp classes(7 HRS Daily) will start from 5 & 20 December 2019 in:
1) Internet of things(IoT) Using RASPBERRY-PI
2) Machine Learning (ML)

70% OFF| Fee-INR 3,000/-

Limited seats!! Hurry up!!

[[ CALL - 07976731765 ]]

Some Study Resources are compiled from original Stack Overflow Documentation, the content is developed by the different experts at Stack Overflow. Study resources are released under Creative Commons BY-SA. Images may be copyright of their respective owners. This website is for self-learning and not affiliated with Stack Overflow. All trademarks and registered trademarks are the property of their respective company owners. Please send feedback and corrections to chandwaglobal@gmail.com.

...