When you would like putty to autologin to the HPC servers without asking for username and password every time you connect.
Step-by-step guide
Creating the Public/Private Key Pairs
- Open puttygen.exe
- Click Key → Parameters for Saving File
- Set PPK file Version: 2
- Click OK
- Set PPK file Version: 2
- Click Generate
- Create some chaos (i.e. jiggle the mouse)
- Click Save private key
- Click yes to save it without a passphrase to protect it
- Save it somewhere on a secure location (not "publicly" accessible)
- Copy all the text within the "Public key for pasting into OpenSSH authorized_keys file:" box
Make sure you copy all the text as there usually is a scrollbar within the box. Your ending text should usually include "rsa-key-" or similar.
- Open up a putty terminal
- Connect to HPC of choice
- navigate to ~/.ssh
- Add what you copied (your public key) to a new line in "authorized_keys" file
- You can use VIM, nano, or other
Setting Up Putty
- Open Putty (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)
- Connection→SSH→Auth
- Under "Private key file for authentication" click Browse
- Navigate to your private key file that you saved in step 4
- Click open
- Go back to session
- In "Host Name (or IP address)" put in: username@quantum-login1-ema
- Port: 22
- In "Host Name (or IP address)" put in: username@quantum-login1-ema
- Don't forget to save your session so you don't have to repeat these steps
- Under "Saved Sessions" box enter a session name (e.g. EMA)
- Click Save
Skip the Username
If you want putty to automatically use a predefined username you can set it in Connection→Data
Related articles
https://groups.google.com/a/solvay.com/g/sbs-quantum-hpc/c/7LqS_iGvRz8?hl=fr

