Facebook
Banner
XMPP JavaScript Library READ MORE

File transfer using SSH (SCP)

Linux, Sachin Puri, 2011-09-08 15:24:22

Files can be transferred using ftp server. FTP is most common way to transfer files between servers. But FTP is not secure as it sends username and password using simple text.

 
To transfer files securely we can make use of SCP command. SCP stands for Secure Copy Secure (CP). Using SCP we can transfer files between two remote servers or between remote and local server.
 

Syntex:

scp username@from-server:<path-to-file> username@to-server:<path-to-file>

 

Where,

 

username = username of user who has right to access the server

from-server = Server from which file is to be transfered.

path-to-file = is the absolute path of file 

to-server = server where file is to be transfered

 

Examples

 

1) scp root@server.com:/home/user1/file1.txt file1.txt

here we are copying file1.txt from server.com server and the username of server.com is root

2) scp *.txt root@server.com:/home/user1

here we are copying all text files in current directory to server.com's /home/user1 directory

3) scp -r root@server1.com:/home/user1 root@server2.com:/home/user1

here we are copying all file recursively from server1.com's /home/user1 to server2.com's /home/user1

 

Requirements: -

open-ssh

Add Your Comment
   
    Yes! I want to receive all comments by email

  by Ultra Fast Keto Boost on 19-Aug-2019 01:24 pm
People who drink normally have a belly and you can't deny this. If you think that alcohol only contains alcohol, you are wrong! Alcohol actually contains a high level of sugar which many might not notice about because the drink is not sweet. By taking away alcohol from your daily diet, losing weight fast and naturally should not be a problem.
  • Reply
  •  17 Like
  •  7 Dislike
  • Report
  by personal classifieds on 24-Jul-2019 08:24 pm
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by seema on 24-Jul-2019 01:14 pm
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure I will check out more posts. This site seems to get a good amount of visitors.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Custom Printed Boxes on 23-Jul-2019 10:58 am
Hi, this post is genuinely fastidious and I have learned lots of things from it about this. I am truly pleased to read this website posts which carries lots of helpful data, thanks for providing these kinds of statistics. I have info here too!
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Healthinsideinfo on 15-Jul-2019 11:54 am
Foods made with white flour are very common. That includes most breads, cookies, crackers, pastries and pastas.
  • Reply
  •  7 Like
  •  8 Dislike
  • Report
  by john on 13-Jun-2019 08:15 pm
Best HP Printer support & troubleshooting at 123.hp.com/setup.Get setup,install services for all 123 HP Printer.Find the latest drivers for hp.com/123.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by john on 13-Jun-2019 08:15 pm
Best HP Printer support & troubleshooting at 123.hp.com/setup.Get setup,install services for all 123 HP Printer.Find the latest drivers for hp.com/123.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by 192.168.l.l on 05-Jun-2019 01:55 pm
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info. Fantastic nice. I appreciate this post. and thank you for sharing an amazing article..
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Provexum on 23-May-2019 08:45 pm
The safety evaluation of 7-KETO has been done through observations
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Phalogenics on 13-May-2019 04:43 pm
Phalogenics no sugar or sweets, no breads and cakes, no beans and lentils
  • Reply
  •  8 Like
  •  7 Dislike
  • Report
  by BISE Board Matric Result on 11-May-2019 11:07 am
Very awesome!!! When I seek for this I found this website at the top of all blogs in search engine.
  • Reply
  •  8 Like
  •  9 Dislike
  • Report
  by Custom Printed Boxes on 08-May-2019 06:46 pm
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming. Thank you For Sharing This Information...
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Custom Packaging Boxes UK on 08-May-2019 05:27 pm
I wanted to thank you for this great read!! This is a wonderful article, Given so much info in it, I definitely enjoying every little bit!! These type of articles keeps the user's interest in the website, and keep on sharing more ... good luck.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Custom Stickers Printing UK on 08-May-2019 04:11 pm
The superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place. and thank you for sharing for the amazing article...
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Custom Stickers Printing on 07-May-2019 06:38 pm
This is also a very good post which I really enjoyed reading. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog. and Thank you For Sharing...
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Sticker Zone on 07-May-2019 04:56 pm
I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Craft Boxes on 07-May-2019 03:30 pm
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Sticker Printing Press on 06-May-2019 06:07 pm
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really that good.Thanks alot!
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by buy instagram followers on 05-May-2019 11:15 pm
You completely match our expectation and the variety of our information.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Custom Packaging Boxes UK on 04-May-2019 09:21 pm
Really your article is very helpful for me I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by 123 hp com setup on 04-May-2019 02:09 am
Thank you such a great blog! Dial our HP Printer support Phone Number +1-844-802-7535 for support if you are getting issues with HP Printer get instant solution.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by sony xperia xa1 case on 18-Apr-2019 10:40 am
If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Legends Keto on 08-Apr-2019 05:32 pm
SEO AIM POINT offers you assortment of Digital marketing services that includes SEO, social media, reputation management, website designing & development, PPC and application development.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by www.1rank.net on 06-Apr-2019 12:08 pm
Speedily this specific web page could indisputably become popular involving most writing a blog along with site-building persons, for you to their fastidious blogposts or possibly testimonials.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by nutrilife keto on 29-Mar-2019 04:09 pm
It's just as easy to go to a local park or building and climb the stairs there, rather than using a stair master in a gym with stale air. In fact, it's probably better. You're outside and breathing in the fresh air if you're in the park.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by ketozin on 26-Mar-2019 03:50 pm
The price of a water dispenser depends upon the features and brand. The more the features, the more is the price. If you want a dispenser in low budget go for one with basic features.
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by nutrilife keto on 25-Mar-2019 04:32 pm
Type your comment...consistently, consider, the best way, to feel better, about ourselves, we will be more capable of letting life, become our ally, instead of an adversary. Doesn't it make sense,
  • Reply
  •  7 Like
  •  7 Dislike
  • Report
  by Rafia on 13-Mar-2019 04:13 pm
Here we are providing you Punjab Education Commission (PEC) 5th and 8th class result 2019. PEC 5th and 8th class result will be announced on 31st March 2019. Students can check their result through online by entering you roll number, name and school name. Keep in touch with us for more details about PEC 5th and 8th class result 2019.
  • Reply
  •  8 Like
  •  8 Dislike
  • Report
  by www.bradic.org on 09-Mar-2019 12:57 pm
This phenomenal hearings thoroughly correct. Most of low statistics are prepared by making usage of large number about feel effective skills. We're anxious the software once a whole lot.
  • Reply
  •  8 Like
  •  8 Dislike
  • Report
  by Naeem khatri on 07-Feb-2019 05:32 pm
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it.
  • Reply
  •  8 Like
  •  8 Dislike
  • Report
  by umer on 09-Dec-2018 11:40 am
Type your comment...Hy very useful information for me thanks Keep up the good work and go on thanks again
  • Reply
  •  10 Like
  •  9 Dislike
  • Report
  by men's fashion on 08-Dec-2018 03:36 pm
Hay, very good article learn a lot in this article. Thanks for sharing keep up the good work. Its awesome information for me because I learn a lot from this article. Thanks
  • Reply
  •  9 Like
  •  9 Dislike
  • Report
  by 123 HP Printer Setup on 03-Dec-2018 02:51 pm
Thank you very much for this valuable contribution and informative.
  • Reply
  •  9 Like
  •  9 Dislike
  • Report
  by zwamal maroc on 12-Jul-2019 08:53 am
thank you so much
  • Reply
  •  7 Like
  •  8 Dislike
  • Report