XMPP JavaScript Library

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 Fred Claar on 26-Mar-2019 05:03 pm
Type your comment...I learn some new stuff from it too, thanks for sharing your information. consultor-seo-cantineoqueteveo.com
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by ketozin on 26-Mar-2019 03:50 pm
The price of a water dispenserketozin 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
  •  0 Like
  •  0 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
  •  0 Like
  •  0 Dislike
  • Report
  by nutrilife keto on 25-Mar-2019 04:33 pm
consistently, consider, the best way, to feel better, about ourselves, we will be more capable nutrilife keto of letting life, become our ally, instead of an adversary. Doesn't it make sense,
  • Reply
  •  0 Like
  •  0 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
  •  0 Like
  •  0 Dislike
  • Report
  by ibmseo on 24-Mar-2019 05:03 pm
I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. foxytotes
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by IBMSEO on 23-Mar-2019 10:53 am
Thank you for the update, very nice site.. buy instagram likes
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 22-Mar-2019 06:58 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. Pearland TX garage door repair
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by kingyslmail on 22-Mar-2019 12:35 pm
A good movie can make up your day and can definitely make you feel better after whole day in hectic routine office works. Yes, we need a break and entertained our self after the stress full office day. However, sometimes, mostly at the end of the month you would found out that your pocket is empty, or you don’t have enough money to go to cinema and enjoy the movie. https://webbox.wordpress.com/
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 22-Mar-2019 11:38 am
Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. dominoqq online
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 22-Mar-2019 11:37 am
I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. domino 99
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by health and fitness on 20-Mar-2019 09:32 am
Appreciative to you for posting this information. health and fitness I on a key estimation need to wreck in you to see that I all around research certain ways concerning your site and I feel that its supporting and illuminating.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Andrew Bryant on 19-Mar-2019 06:55 pm
Straight away the location may well irrefutably get hold of notable one of the most for ad clients, for its rigorous article content and / or very important critical reviews. Family Lawyers Brampton
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by houses for sale in Canada on 18-Mar-2019 11:45 pm
Thanks To you for this post it is very informative for me regarding houses for sale in Toronto
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 18-Mar-2019 01:53 am
I'm glad to see the great detail here!. part time work
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 17-Mar-2019 01:54 pm
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. go to this site
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Malik khan on 16-Mar-2019 07:17 pm
Type your comment...I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... option trading tips
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 16-Mar-2019 10:46 am
This is really very nice post you shared, i like the post, thanks for sharing.. Pakistan Jobs Bank Visit Our Website To Check Latest Jobs in National Bank of Pakistan 2019 from All Newspaper Jang, Express, Dawn and The Nation 2019.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 16-Mar-2019 01:52 am
This website and I conceive this internet site is really informative ! Keep on putting up! cool headphones
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Fred Claar on 15-Mar-2019 01:42 pm
Type your comment...I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... hair care
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Marketing Manager on 15-Mar-2019 01:33 pm
This is furthermore a fantastic write-up my partner and i really enjoyed considering. It really is generally not very each day my partner and i support the possibility to look at something. www.3dinnovations.com.sg provides a singapore renovation contractor
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 14-Mar-2019 09:55 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. megamads.tv
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Watches and Jewelry on 14-Mar-2019 08:51 pm
You create this actually best for all newbie here. Watches and Jewelry Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by mmssw on 14-Mar-2019 12:41 am
Very good topic, similar texts are I do not know if they are as good as your work out. watch movies online 123
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Rafia on 13-Mar-2019 04:14 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. Lahore Board 8th Class Result 2019 By Roll Number
  • Reply
  •  1 Like
  •  1 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
  •  1 Like
  •  1 Dislike
  • Report
  by Fred Claar on 13-Mar-2019 03:39 pm
Type your comment...I would like a few possibilities articles or reviews, Earn most popular, A totally free rather have a whole lot more knowledge with this, great deal of thought is particularly fascinating., Bless you will planned for making. sms number for verification
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Amelia King on 11-Mar-2019 06:43 pm
These pages may irrefutably potentially often be famous concerned with lots of blogs and forums men and women, so that you can it has the hardworking content and also beliefs. payday loan consolidation
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by https://clashforacure.org/ on 10-Mar-2019 10:07 pm
Thanks for the best blog. It was very useful for me. keep sharing such ideas in the future as well. https://clashforacure.org/
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 09-Mar-2019 07:56 pm
You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!. 123movies
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by uzair awan 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. www.bradic.org
  • Reply
  •  1 Like
  •  1 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
  •  1 Like
  •  1 Dislike
  • Report
  by 123movies unblocked on 07-Mar-2019 11:49 pm
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. 123movies unblocked
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by 123.hp.com/setup on 07-Mar-2019 10:51 am
Thank you! Your blog is very helpful and knowledgeable you also visit here 123.hp.com/setup
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Nicole Bates on 06-Mar-2019 01:49 pm
Any time i actually turned against your web-site while having special particular attention without difficulty a small amount of touch submits. Gratifying way of duration, Soon we will be book-marking at this point currently have styles execute springs perfect right up. hard reset xiaomi
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by mywifiext on 06-Mar-2019 11:00 am
mywifiext Thanks for sharing the excellent post. I like your post and great idea's.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by generic on 06-Mar-2019 10:08 am
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Gerald Fowler on 05-Mar-2019 07:56 pm
Instantly that web site could possibly irrefutably finish up popular concerning just about every publishing some people, on account of conscientious articles or blog posts in addition to opinions in addition to reviews. Bonuses
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by setupmywifiext on 05-Mar-2019 10:50 am
Great, thats an awesome read. You may check our website also Mywifiext
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by help123hp on 05-Mar-2019 10:50 am
I am very happy to see this post because it really a nice post.Thanks You may check our website also 123.hp.com/setup
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by 123.hp.com on 05-Mar-2019 10:49 am
Excellent post. To get support or guidance regarding the setup of your printer you can visit 123.hp.com printer support webpage
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Ryan Ryan on 05-Mar-2019 12:43 am
Python can be a energetic and also object-oriented development terminology, widespread regarding Net program advancement. 90% of people favor Python above some other engineering to its ease, trustworthiness and also effortless interfacing. Python
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Tecocraft Ltd on 04-Mar-2019 04:51 pm
Thank you, sharing this information with the example. Mobile App Development Company in UK
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Joshua Smith on 04-Mar-2019 02:22 pm
I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on here. flowers delivered poipu
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Howard Berry on 02-Mar-2019 11:51 pm
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. emergency locksmith Boulder
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by cleaning services on 02-Mar-2019 07:25 pm
Thanks To you for this post it is very informative for me regarding maid service
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Marketing Manager on 02-Mar-2019 04:10 pm
Could potentially be at the same time a fairly fantastic post that marilyn and i clearly loved comprehending. Usually not regularly of which see the the chances to buy a device. Taking the red pill
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Paul Daniels on 02-Mar-2019 04:08 pm
We are a highly experienced and dedicated group of professionals, striving to set new trends in the ground transportation industry. Party Bus Toronto
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Thomas Williams on 02-Mar-2019 01:09 pm
Newmarket Limo Services is a well-acclaimed company that specializes in delivering superior class limousine rental services across Newmarket city and nearby areas. Newmarket Limo
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 02-Mar-2019 10:57 am
I have read your article couple of times because your views are on my own for the most part. It is great content for every reader. safe male enhancement pills
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Mozia on 01-Mar-2019 07:09 pm
Our company boasts an impressive fleet comprising of elegant Hummers, well-appointed Sedans, magnificent SUVs, chic Town cars, classy Bentleys, royal vintage limos, luxury party buses, and voguish mini passenger coaches. Toronto Wedding Limo
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Fred Claar on 01-Mar-2019 12:47 pm
Type your comment...I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. Crochet hair
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by numero de voyance on 01-Mar-2019 12:00 pm
Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. numero de voyance
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by IBMSEO on 27-Feb-2019 07:19 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. extra torrent unblocked
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by IBMSEO on 27-Feb-2019 03:27 pm
I love visiting sites in my free time. I have visited many sites but did not find any site more efficient than yours. Thanks for the nudge! where can you buy forskolin
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Malik khan on 26-Feb-2019 06:32 pm
Type your comment...Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. Composite doors
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by fantasy league app for android on 26-Feb-2019 03:19 pm
Type your comment...I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. ipl fantasy league app for android
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 25-Feb-2019 09:30 pm
Η εταιρεία Apofraxeis, δραστηριοποιείται στο χώρο της συντήρησης, απόφραξης, καθαρισμού αποχετευτικών αγωγών και μεταφορών λυμάτων από το 1960. Διαθέτοντας πολυετή εμπειρία και τα πιο σύγχρονα αποφρακτικά μηχανήματα διασφαλίζουμε την ΕΓΓΥΗΣΗ των εργασιών μας, με ΧΑΜΗΛΟ ΚΟΣΤΟΣ και ταχύτατους χρόνους εξυπηρέτησης. αποφραξεις
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by ibmseo on 25-Feb-2019 11:44 am
This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. 8 Class Result 2019
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by online_cialis on 24-Feb-2019 06:32 am
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Kevin Barnett on 24-Feb-2019 12:15 am
At once this website should irrefutably commonly end up leading involving almost all web log buyers, thanks to diligent experiences along with testing. shoplienquan
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by super on 23-Feb-2019 09:41 pm
  • Reply
  •  1 Like
  •  1 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
  •  1 Like
  •  1 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
  •  3 Like
  •  2 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
  •  2 Like
  •  2 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
  •  2 Like
  •  2 Dislike
  • Report