Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I'm trying to set up git on my NAS server (Synology DS212J), and now I've gotten to the part where you're supposed to copy my public key... but I don't really understand what it is referring to.

Is there some way to generate this key for a NAS?

I'm following these instructions:

And got to this step:

Now copy your public key to a share and move it to the authorized_keys file:
mkdir -p /volume1/home/user1/.ssh
mv /volume1/someshare/ /volume1/home/user1/.ssh/authorized_

But when I tried typing those lines in, I got:

nas> mv /volume1/_git/ /volume1/home/user1/.ssh/authorized mv: can't rename '/volume1/_git/': No such file or directory

I had created a new shared directory called "_git" in the NAS.

share|improve this question
Some troubleshooting questions: What is the result of: cd /volume1; ls -al; cd _git; ls -al? Did you ever run the ssh-keygen command? Do you know if you already have a public/private key? You can place all your answers as edits to your question (easier to read ;) ) – Alexander Bird May 28 '12 at 21:39
up vote 0 down vote accepted
ssh-keygen -t rsa

then copy the public part of the key to the auth file on the server.

share|improve this answer

Your Answer


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.