You have 2 possibilities for generating SSH keys:
- generate a key pair on c4science and download the private key to your computer. C4science will not store your private key.
- generate a key pair on your computer (please google this for your OS) and upload the public key to c4science.
We will here explain how to generate a key on c4science and how to use it. If you wish to upload your key, it is pretty straightforward, please keep on reading to know how to use your key on c4science.
Click on the wrench at the top right corner
{F230721}
and then choose, from the left hand side menu, `SSH Public Keys`.
# Generate a key pair on c4science
Click on `SSH Key actions` and then `Generate Keypair`. Follow the dialogs and download the private key to the correct directory (this depends on your Operating System, it usually is `~/.ssh`). You will need to change the permission to the downloaded key:
```
chmod 600 ~/.ssh/id_rsa_phabricator.key
```
Now, you will need to declare which key you use for c4science. Add the following to your `~/.ssh/config` file:
```
host c4science.ch
HostName c4science.ch
IdentityFile ~/.ssh/id_rsa_phabricator.key
User git
```