Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The key part of the article "<a href="http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server" rel="nofollow noreferrer">Git on the Server - Setting Up the Server</a>" is:</p> <blockquote> <p>you need to add some developer SSH public keys to the <code>~/.ssh/authorized_keys</code> file for that user.<br> Let’s assume you’ve received a few keys by e-mail and saved them to temporary files. Again, the public keys look something like this:</p> </blockquote> <pre><code>$ cat /tmp/id_rsa.john.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCB007n/ww+ouN4gSLKssMxXnBOvf9LGt4L ojG6rs6hPB09j9R/T17/x4lhJA0F3FR1rP6kYBRsWj2aThGw6HXLm9/5zytK6Ztg3RPKK+4k Yjh6541NYsnEAZuXz0jTTyAUfrtU3Z5E003C4oxOj6H0rfIF1kKI9MAQLMdpGW1GYEIgS9Ez Sdfd8AcCIicTDWbqLAcU4UpkaX8KyGlLwsNuuGztobF8m72ALC/nLF6JLtPofwFBlgc+myiv O7TCUSBdLQlgMVOFq1I2uPWQOkOWQAHukEOmfjy2jctxSDBQ220ymjaNsHT4kgtZg2AYYgPq dAv8JggJICUvax2T9va5 gsg-keypair </code></pre> <p>(Note: make sure the key is displayed on <strong>one</strong> single line)</p> <blockquote> <p>You just append them to your authorized_keys file:</p> </blockquote> <pre><code>$ cat /tmp/id_rsa.john.pub &gt;&gt; ~/.ssh/authorized_keys </code></pre> <p>If you don't have an <code>authorized_keys</code> file on your server, create it, but make sure to protect it correctly.</p> <pre><code>server$ mkdir ~/.ssh server$ chmod 700 ~/.ssh server$ cat ~/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys server$ chmod 600 ~/.ssh/authorized_keys server$ rm ~/id_rsa.pub </code></pre> <p>See "<a href="https://stackoverflow.com/a/3712619/6309">Creating SSH keys for Gerrit and Hudson</a>" for a concrete example.</p> <ul> <li>Make sure git is in the PATH used by your ssh daemon.</li> <li>Make sure all parent directories of your <code>~/.ssh</code> are not writable for the group (<code>chmod 755</code> only).</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload