Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.