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
link|improve this question

64% accept rate
feedback

1 Answer

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

That should get the job done (assuming "shared" is in your CWD) if the server support scp, which it likely will by default. You'll be asked for you password from STDIN after issuing the command.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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