Computer Aided Engineering Journal & Forums

  • Home
  • Forums
  • Help
  • Search
  • Contact
  • Members
Current time: 09-09-2010, 05:13 PM



Computer Aided Engineering Journal & Forums / Documentation & Book Keeping / Tips-n-Tricks, Howtos, & Docs / How to: Transfer files between local machine and server using scp
Post New Reply 
Threaded Mode | Linear Mode
How to: Transfer files between local machine and server using scp
01-27-2009, 03:39 PM (This post was last modified: 03-03-2009 11:10 AM by caejournal.)
Post: 1
mandarin Offline
Junior
Posts: 60
Joined: Nov 2008
More of like a tip than a howto Smile

Here is how to transfer files between local machine and a remote server using
Code:
scp
(secure copy) command. Handy if using a linux machine.

From local to remote:
Code:
scp filename username@server.name.full:/path/to/directory/

From remote to local:
Code:
scp username@server.name:/path/to/filename .

Take a note on the '.' (dot) at the end of the above command. it means 'here'. So the file will be copied to the location where you type the command from. One can also specify a path.

Also
Code:
scp
allows the use of '*' as a wild character to specify more than one file.

That's it. Simple steps. Hope this is useful for someone.
Find 
Reply 
01-28-2009, 11:56 AM
Post: 2
continuum Offline
Moderator
Super Moderators
Posts: 200
Joined: Oct 2008
Good one. Thanks.
It can also be used to transfer files between two remote servers (of course if they are connected and you have access to both of them).
Visit this user's website Find 
Reply 
02-14-2009, 11:52 AM
Post: 3
fermi Offline
Sophomore
Posts: 11
Joined: Nov 2008
good reference
Find 
Reply 
03-13-2009, 01:12 PM
Post: 4
kinematic Offline
Senior
Posts: 102
Joined: Nov 2008
++
to copy a folder and its contents, just ad the '-r' flag like this:
Code:
scp -r folder/ username@server.name.full:/path/to/directory/

Smile
Find 
Reply 
« Next Oldest | Next Newest »
Post New Reply 


[-]
Quick Reply
Message
Type your reply to this message here.


You have selected one or more posts to quote. Quote these posts now or deselect them.
Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to get GUI (using Cygwin) from a remote server kinematic 3 571 01-18-2009 04:14 AM
Last Post: femnoob

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread

Contact Us | Home | Forums | Return to Top | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2010 MyBB Group | © 2010 CAE Journal (Computer Aided Engineering Journal)
Product names and trademarks are the property of the respective trademark holders.
None of the trademark holders listed are affiliated with this website or forum.
No endorsement of any information, service or product by any company or person is made or implied.