Check to see if you already have a public/private key pair for your user. If you do, it will be in your
[~]$ cd .ssh [~/.ssh]$ ls config id_rsa.pub id_rsa known_hosts
Key pairs are always named like
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.
If you don't have any keys yet, then you'll need to generate them. This can be done with the
[~/.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
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.
Copy your public key to the clipboard so you can easily paste it into your web browser.
[~/.ssh]$ cat id_rsa.pub | xclip
xclip command copies whatever is sent to it via STDIN
to the clipboard, ensuring that you won't have any extraneous newlines
or other problems.
[~/.ssh]$ cat id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1FlHRbbxXIv/hLDTeJczlEqGNt0oFcoPEEENHThzP5ku PDsitSSUH2MATP014G/3BzaI9pdnhf02MSEcmtmIKXrm05/dzxEmp9yOY32YHyk6/rLUGGTJuWOpGt3J 6H5LWxq9yeRUuFG/pCRH3+KxOyzasSHXfXJaC5v7wPxUdAeg9k0jwsUjnqUcYvzo5+GwCXV9dIwY3Sr/ OrL2l8SCdSWyd3PLufJXKQHlouHB0NI/+G/QjWmkB8c1PJh/VuIe36mqv82V9XXKvYNaVWwz5Sg6aY9u p2lgDEme+AFdPPjOnkdF6OHCr7ymKg6c/B2YCbOW7QN/L4uAdVOhTNnJMQ== tom@volcano
Copy the entirety of the public key to the clipboard. It is important that there are no newlines in the key (copying from the
output in your console should work properly.
(adapted from github.com)