Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder on my mac that I need to move over to my server. I can ssh in the server but how do i get this folder up....

say I am on my local computer and the folder is named shared and I want to put it on the server in /srv/www/somesite/current. How do i enter the password in my scp command

I found this but i dont think its right

scp -r shared/* matt@174.143.150.55:/srv/www/somesite/current/shared
share|improve this question

migrated from stackoverflow.com Feb 18 '11 at 18:38

This question came from our site for professional and enthusiast programmers.

    
I might suggest using sftp instead of scp. At least for me it's more intuitive. – CarlF Feb 18 '11 at 18:45
scp -r shared matt@174.143.150.55:/srv/www/somesite/current

will create a folder named 'shared' in somesite/current containing all of the content.

share|improve this answer

You don't need the wildcard:

scp -r shared matt@174.143.150.55:/srv/www/somesite/current/

Assuming your server is using password auth and the standard SSH port, you should be prompted for a password.

share|improve this answer
1  
You can also use rsync: rsync -aPzv shared matt@174.143.150.55:/srv/www/somesite/current/ – Sam Stainsby Feb 18 '11 at 2:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .