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.

Hello Wonder if anybody can help. I'm new to SSH & linux, and going through setting up a server.

I'm picking up bits and bobs of bash ok, and remembered someone suggested using bitnami stack for an easier way to set up the server. Plus reading about it seems to have some good features.

So my server just has centos on at the moment, and I removed my previous dabblings with installing mysql/php etc, so I think it's pretty clean now.

I downloaded the bitnami stack for linux, the .run file, and as a first step now I'm trying to get it up there via ssh, it's in my c: on my local pc

I understand I use scp for this, but what's the correct syntax for getting this up there?

Thanks

Mro

share|improve this question
    
Sorry - didn't realise, thanks. –  mro May 21 '12 at 13:04
add comment

migrated from stackoverflow.com May 21 '12 at 14:37

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

1 Answer

up vote 1 down vote accepted

Assuming you have a single file to transfer, located in C:\Myfile.zip

scp c:\Myfile.zip username@webhost-name.com:.

If you have a whole directory you need to copy, located at C:\MyDirectory\

scp -r c:\MyDirectory\ username@webhost-name.com:.

Either command should prompt you to accept the hostkey for 'webhost-name.com', and enter the password for the 'username' account, and then transfer the files. Replace webhost-name and username with the values for your environment.

Note the period . after the colon : on both commandlines, it specifies the username's remote home directory as the target location; if you wish a different remote path, replace the . with the required path.

share|improve this answer
    
Thanks very much ! –  mro May 23 '12 at 9:30
add comment

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.