forgot password?   register

Linux / Unix SSH Setup


Step 1

Check to see if you already have a public/private key pair for your user. If you do, it will be in your ~/.ssh directory.

[~]$ cd .ssh
[~/.ssh]$ ls
config        id_rsa.pub
id_rsa        known_hosts

Key pairs are always named like something and something.pub. The something file is your private key and must be kept secret. The something.pub file is your public key, and this is what you'll be giving us. If you already have a key pair (in the above listing I have an id_rsa key pair) and you want to use it for Patch-Tag, then skip to Step 3.

Step 2

If you don't have any keys yet, then you'll need to generate them. This can be done with the ssh-keygen program.

[~/.ssh]$ ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/home/tom/.ssh/id_rsa): <enter>
Enter passphrase (empty for no passphrase): <enter password>
Enter same passphrase again: <enter password again>
Your identification has been saved in /home/tom/.ssh/id_rsa.
Your public key has been saved in /home/tom/.ssh/id_rsa.pub.
The key fingerprint is:
50:43:77:c6:97:af:61:82:dc:ea:9b:6b:67:d4:1b:61 tom@volcano

The password that you enter will be requested from you every time you push or pull from a private repo. You can use ssh-agent to automate password entry.

Step 3

Copy your public key to the clipboard so you can easily paste it into your web browser.

Finally, log in to patch-tag and paste in your public key.

(adapted from github.com)