OpenSSH configuration
The following items are valid for Linux, Windows and macOS.
Generate your access keys
To generate your access keys, open a Terminal (Linux and macOS) or Powershell (Windows).
| Do NOT open your Powershell as an administrator |
Once in your terminal, type :
ssh-keygen -t ed25519
A passphrase will be prompted. For security reasons, It’s better to add a passphrase, which will be asked two times each time you login.
This will generate two files in your $HOME/.ssh directory : id_ed25519 and id_ed25519.pub.
On Windows, this folder will be in C:\Users\yourusername\.ssh instead
|
Upload your public key
From the two files generated above, open the id_ed25519.pub file with Notepad, cat, whichever you prefer, and copy the contents.
Go to your CLAM account and click on your My Profile on the top right.
Go to the SSH Access tab, and paste the contents inside the SSH-keys textbox. Click Upload.
| You can upload multiple keys by putting the other one on a new line |
Create an SSH configuration file
On Linux/macOS , create a file in your $HOME/.ssh directory called config. It’s better to do this with nano or other console text editors, as macOS opens by default a RST text editor which will not work.
On Windows, also create this file, but be aware that, by default, when saving a text file, Windows puts a .txt extension to it, which we do not want.
The file NEEDS to be called config AS-IS, WITHOUT EXTENSIONS and in the CORRECT DIRECTORY for it to work.
|