Open a terminal and type the commands below.
Beware that the passphrase is not shown when you type it into the terminal.
$ ssh-keygen -a 100 -t ed25519 # Generate a new key
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/{{ request.user.username }}/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/{{ request.user.username }}/.ssh/id_ed25519.
Your public key has been saved in /home/{{ request.user.username }}/.ssh/id_25519.pub.
The key fingerprint is:
SHA256:qEoGc4EbMN2v8LzNxL4ec1T/qOdhglt80Vd2KKIQP5g {{ request.user.username }}
The key's randomart image is:
+--[ED25519 256]--+
|o. . . |
|.o. . = . |
|o . .E o o . . +|
| o.. .o + o o .o|
|+ .+ o. S o . .|
| + +.o. o + . |
| o .*o o + = . |
| o .. ++ o =.. |
| . .o.. .o. |
+----[SHA256]-----+
$ xsel -b < ~/.ssh/id_ed25519.pub # Import the new public key into your clipboard
You may then use Ctrl + V to paste your new key into the form.