I always need to use this method for copy files one remote machine to another machine. there are many tool to do that. filezilla, winscp and many more. But I like command prompt.
scp is command is very useful for file transfer on remote machine.

To copy local file on remote machine use following command

#scp FILENAME  USERNAME@55.86.59.95:/home/USER/

To copy file from remote machine use following command

#scp USERNAME@55.86.59.95:/home/USER/FILENAME  .
or use
#scp USERNAME@55.86.59.95:/home/USER/FILENAME  *

To copy file from remote machin using scp command with port

#scp -P54 USERNAME@55.86.59.95:/home/USER/FILENAME  .
or use
#scp -P54 USERNAME@55.86.59.95:/home/USER/FILENAME  *

Above commands will execute faster than other tools.

Remote copy files On server or machine to Remote server

Remote copy files On server or machine to Remote server

Written by Purab Kharat

I Purab am from India, Pune. I am WordPress and Drupal Architect and consultant. I worked on many technologies like Ruby on Rails, Flex, PHP, jQuery etc... Senior Technical Lead at Smartsourcing Global Pvt Ltd in Princeton, NJ, USA.I contributed to many wordpress plugins and Drupal Modules. I contributed to Drupal core also.Connect to purab on LinkedIn or Follow @purab on Twitter or Follow me on Google+ or Write Mail to purabdk@gmail.com or Chat with me on Skype : purabdk

This article has 1 comment

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>