Back to Support 

Gitosis SSH Setup

Create ssh key

  • To create a key-pair, run ssh-keygen with the –t option. The -t option specifies which cryptosystem you want the key to use. The valid options are "rsa", "dsa". In this example, we have elected to use RSA authentication:

              $ ssh-keygen -t rsa
              Generating public/private rsa key pair

  • Next you will be prompted for a passphrase, which is used to encrypt the private key. After you enter the passphrase you will be asked to verify it.

              Enter file in which to save the key (/home/sshuser/.ssh/id_rsa):
              Enter passphrase (empty for no passphrase): **********************
              Enter same passphrase again: **********************

  • If the two passphrases do not match, you will be given an error message and asked to enter the passphrases in again, as shown below.

              Passphrases do not match. Try again.
              Enter passphrase (empty for no passphrase): **********************
              Enter same passphrase again: **********************

  • Once the passphrases match, ssh-keygen will display a message indicated where the public and private keys will be saved.

              Your identification has been saved in /home/sshuser/.ssh/id_rsa.
              Your public key has been saved in /home/sshuser/.ssh/
              The key fingerprint is:

Configure ssh client settings

  • Edit your ssh client configuration, such that ssh requests to are sent over port 9222. This is accomplished by creating or modifying /home/sshuser/.ssh/config with the following value.

                 Port 9222
                 identityfile <The path to the private key you generated> such as: /home/sshuser/.ssh/id_rsa

  • Check that the file permissions are set properly on /home/sshuser/.ssh/config.  You can set the correct permissions by running the following command:

              chmod 644 ~/.ssh/config

Send ssh public key

  • Create a ticket describing your request, give your name, account details, and project you need access to, then attach the public key file to the ticket.  Once your request is processed you should have access.
Created by Greg Stinocher on 2012/07/19 14:31
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 7.4.3 - Documentation