Page MenuHomec4science

Setting up SSH keys
Updated 2,717 Days AgoPublic

Version 4 of 19: You are viewing an older version of this document, as it appeared on Nov 25 2016, 11:12.

You have 2 possibilities for generating SSH keys:

  • generate a key pair on your computer and upload the public key to c4science. prefered method
  • generate a key pair on c4science and download the private key to your computer. C4science will not store your private key.

Click on the wrench at the top right corner

and then choose, from the left hand side menu, SSH Public Keys.

Upload your SSH key

  • Generate a key on your computer, it's important to add a passphrase for your key when prompted
ssh-keygen
  • On c4science, click on SSH KEy actions and then Upload Public Key
  • Give it a name and paste the content of the public key
  • You can find the public key by running this command
cat ~/.ssh/id_rsa.pub
  • Click Upload Public Key
  • And you're done, you can start clone repositories using SSH

Generate a key pair on c4science

If you don't know how to generate a key on your computer, c4science can do it for you. If you already uploaded your key, you don't need this.

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
Last Author
aubort
Last Edited
Nov 25 2016, 11:12

Event Timeline

rezzonico created this document.Oct 31 2016, 10:57
rezzonico edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Nov 25 2016, 11:03
aubort edited the content of this document. (Show Details)Nov 25 2016, 11:08
aubort edited the content of this document. (Show Details)Nov 25 2016, 11:12
aubort changed the edit policy from "c4science (Project)" to "Restricted Project (Project)".Dec 16 2016, 16:52
aubort edited the content of this document. (Show Details)Jan 4 2017, 14:26
aubort edited the content of this document. (Show Details)Jan 5 2017, 10:03
aubort added a project: c4science.
aubort edited the content of this document. (Show Details)Jan 30 2017, 14:28
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Mar 17 2017, 13:44
aubort edited the content of this document. (Show Details)Mar 21 2017, 16:17
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Aug 8 2017, 14:01
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Aug 8 2017, 14:05
aubort edited the content of this document. (Show Details)Aug 8 2017, 14:25
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Aug 10 2017, 13:11
aubort edited the content of this document. (Show Details)Aug 10 2017, 13:18