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@

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@

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


You don't need the wildcard:

scp -r shared matt@

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

  • 1
    You can also use rsync: rsync -aPzv shared matt@ – Sam Stainsby Feb 18 '11 at 2:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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