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

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?



share|improve this question

migrated from May 21 '12 at 14:37

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

Sorry - didn't realise, thanks. – mro May 21 '12 at 13:04
up vote 1 down vote accepted

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

scp c:\

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

scp -r c:\MyDirectory\

Either command should prompt you to accept the hostkey for '', 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

You must log in to answer this question.

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