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 need to download some files using ssh, but I'm not able to get them.

The first command I try is:

ssh get folderName

...and nothing happens.

The second command is:

ssh get *

...and for each file I get the following error message:

ERROR [/path/to/file.png]: not an SCCS file (co1)
share|improve this question

2 Answers 2

up vote 23 down vote accepted

There's no such thing as an ssh get command. You probably wanted scp, or maybe sftp.

ssh is the "Secure SHell". It's for securely connecting to a command shell on remote machines (think of it like secure telnet), or sending shell commands to be executed by another machine. ssh itself is not for copying files. ssh has a companion program scp (Secure CoPy) for securely retrieving files from another machine. The syntax for scp goes like this:

scp -r user@host:/path/to/folderName .

(The -r is for "recursive", which means it gets the target folder and its entire contents, not just the target folder itself.)

So what happened before?
The command you were running, well, either you had a config file set up to define the remote host to connect to, and possibly the user name to connect as, or you left out part of the command. It would canonically be written like this:

ssh user@host get folderName

Which means you were opening a secure shell on the remote host, and issuing the get shell command over there, with argument folderName. I don't have a get command on my system, but some brief Googling reveals that some ancient source code control systems such as SCCS and RCS may have had a get command, which fits with the error message you saw. I think you were accidentally invoking the SCCS or RCS get command on the remote system, but since the folderName wasn't a recognized source code repository format, it failed.

share|improve this answer
    
so, is scp always working when ssh is working ? (do providers providing ssh access usually also provide scp access ?) –  Patrick Sep 15 '10 at 9:34
1  
Yes, scp is pretty much everywhere that ssh is. It is installed and enabled by default when you enable ssh, it takes extra work to disable it, and most people don't have a good reason to. –  Spiff Sep 15 '10 at 14:42

You're thinking of Wget

just add a "W"

share|improve this answer

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.