SSH Clients and Keys¶
MacOS and Linux¶
On MacOS and your Linux distribution almost certainly include an ssh client (likely OpenSSH).
The default ssh configuration will create a hidden folder .ssh
in a user's home drive e.g. /home/k1234567/.ssh
Keys on MacOS and Linux¶
To check if you already have a key or other ssh related files on the command line run: ls ~/.ssh
In the output below, two existing key pairs can be seen, id_dsa
and id_rsa
with their corresponding public keys id_dsa.pub
and id_rsa.pub
1 2 3 |
|
If you have a key pair you can go straight to add the public key to the e-Research portal below.
To create a new key use the command: ssh-keygen -t rsa
Warning
If you have an existing id_rsa file this is a destructive process and the file will be overwritten with the new key.
You can just press enter for the first question ("Enter file in which to save the key") and the key will be generated in the default location. Enter a strong passphrase for the second step.
Once you have created the key pair you can add the public key to the e-Research portal.
Windows¶
Keys on Windows¶
From Windows 10 there is a built-in SSH client and tools that work in a very similar way to OpenSSH on Mac OS and Linux.
Open a command prompt and check you are in your home directory (usually C:\Users\<username>
).
Check if you already have a key or other ssh related files on the command line using: dir .ssh
In the output below, an existing key pair can be seen, id_rsa
with the corresponding public key id_rsa.pub
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
If you have a key pair you can go straight to add the public key to the e-Research portal below.
To create a new key use the command: ssh-keygen -t rsa
Warning
If you have an existing id_rsa file this is a destructive process and the file will be overwritten with the new key.
You can just press enter for the first question ("Enter file in which to save the key") and the key will be generated in the default location. Enter a strong passphrase for the second step.
Once you have created the key pair you can add the public key to the e-Research portal.
Add the public key to portal.er.kcl.ac.uk¶
Open https://portal.er.kcl.ac.uk/access/ssh add a key name and, on linux or mac, copy the output from: cat ~/.ssh/id_rsa.pub
or, on windows, open the public key in a text editor and copy the contents into the SSH Key field.
Host fingerprints¶
1 2 3 4 5 6 7 |
|