Converting a PuTTYGen SSH private key for use with MobaXterm (Windows only) The private key file should be protected and not shared with others. The public key file is the part that you need to share in order to access JASMIN. id_rsa_jasmin.pub - the public key file.id_rsa_jasmin - the private key file (which should have permission "400", i.e.Your public key has been saved in /home/users/meuser/.ssh/id_rsa_jasmin.pub.ħ4:14:95:8a:31:73:cc:5c:af:be:91:04:01:c2:39:0b ssh-keygen will generate two files in your $HOME/.ssh/ directory: Your identification has been saved in /home/users/meuser/.ssh/id_rsa_jasmin. The output will look something like this: Generating public/private rsa key pair.Įnter passphrase (empty for no passphrase): Note that nothing is echoed to the screen when you enter your passphrase, so it may look like it is not working. Use a new, different passphrase whenever you generate a new key. This is a requirement for access to JASMIN machines. Open a terminal and generate your public and private key, as follows (replace the e-mail address with your own, and ignore the "$" which is simply the command prompt): $ ssh-keygen -t rsa -b 2048 -C -f ~/.ssh/id_rsa_jasminĪt the prompt, type a secure passphrase to protect your SSH private key. The Linux command ssh-keygen should be used to generate your SSH key pair. Using ssh-keygen to create an SSH key pair Screenshot of a shell terminal using the MobaXterm client on Windows. Figures 1 and 2 show example terminal windows on a Mac and Windows (using MobaXterm).įigure 1. Screenshot of a shell terminal on a Mac.įigure 2.
#Create ssh keys install
Windows users are advised to install the MobaXterm application which provides a linux-style terminal with all the relevant utilities included. Linux and Mac users can use a standard terminal which is very likely to have SSH installed. Generating an SSH key pair requires an SSH client and a Shell terminal. If you are updating your key for an existing account then you will need to update it in your JASMIN profile. If this is the first time you have created a key pair then this will be done when you create an account on the portal (Step 2 of Get Started with JASMIN). However, if you are experiencing problems logging in to JASMIN you are advised to first check Login problems and then contact JASMIN support before changing your key. Once you have created your SSH key pair it will need to be uploaded to the JASMIN accounts portal. You can also use this procedure to update an existing SSH key pair for JASMIN. Converting a PuTTYGen private key for use with MobaXterm (Windows only).Using ssh-keygen to create an SSH key pair.
#Create ssh keys how to
This article explains how to create an SSH key pair for logging in to JASMIN.