Hackathons/Laptop setup/SSH

No matter what OS you're using, if you have a working install of Git, you have everything you'll need to create an account on Wikimedia's Gerrit setup.

In these steps, we'll make sure your computer has an SSH key that you can share with the Gerrit system. The public key can be shared with Gerrit to identify you; later, your own computer will prove it has the corresponding private key, permitting you to access Gerrit.

Open a Git-enhanced command prompt Edit

On Mac OS or Linux, follow the instructions you've already used to open a command prompt.

On Windows, take the following special actions:

  • Click Start, then Programs, then Git. Choose Git Bash from the options.

This gives you a Git-enhanced, UNIX-esque command prompt.

Find out if your system already has an SSH key Edit

If your computer already has an SSH key, you can stop. So now is a good time to find out.

Type this exactly into the command prompt:

  ls $HOME/.ssh/id_rsa.pub

If you get a message like this:

  ls: cannot access /home/myself/.ssh/id_rsa.pub: No such file or directory

...then you should continue with these steps. If instead you see just this:


...this means that your computer already has an SSH key, and you should scroll to the end and click Return to laptop setup.

Creating a new SSH key Edit

To generate a new key, type:

ssh-keygen -t ed25519

This will ask you a bunch of questions, including some about a passphrase. Press ↵ Enter to accept all the defaults. Compare also Gerrit/Tutorial#Generate a new SSH key for further help.

That's it!

Return to laptop setup Edit

« Return to laptop setup