Create an SSH key pair for Pelle¶
This page describes how to create and use an SSH key so that you can login to the Pelle console environment with an SSH key
Procedure¶
Prefer a video?
Watch the YouTube video Create an SSH key pair for Pelle
This figure shows the procedure:
flowchart TD
subgraph ip_inside_sunet[IP inside SUNET]
create[1.Create an SSH key pair]
add[2.Add your keys to an SSH agent]
copy[3.Copy the public key to Pelle]
end
create --> add
add --> copy
This procedure fails if:
- You use Ubuntu 24.04 Noble, even when inside the university networks. as demonstrated in the end of the YouTube video Create an SSH key pair for Pelle
1. Create an SSH key pair¶
On your local computer, in a terminal, create an SSH key pair with the following command:
-a 100
: 100 rounds of key derivations, making your key's password harder to brute-force, as is recommended by this StackExchange post-t ed25519
: type of encryption scheme-f ~/.ssh/id_ed25519_uppmax_login
: specify filename, following the naming scheme as suggested in this Superuser post-C "My comment"
: a comment that will be stored in the key, so you can find out what it was for
2. Add your keys to an SSH agent¶
On your local computer, in a terminal,
add your newly generated ed25519
key to an SSH agent:
3. Copy the public key to Pelle¶
On your local computer, in a terminal, copy the public key to Pelle:
-i .ssh/id_ed25519_uppmax_login.pub
: the identity file, the public key's filename[username]@pelle.uppmax.uu.se
: your UPPMAX username, for examplesven@pelle.uppmax.uu.se
After this, you can login to Pelle without specifying a password.
Troubleshooting¶
On Linux, it still asks for a password¶
This may be for multiple reasons.
Possible reason 1 is that the SSH key needs to be specified explicitly, e.g.
For example:
Possible reason 2 is that the folders used by SSH do not have proper rights (from this post and its answer:
To give the folders needed by SSH the proper rights, on Pelle, do:
On your local computer, do: