From 2466975007537d35dd31f5b8e556ae59511649ec Mon Sep 17 00:00:00 2001
From: Jan Siwiec <jan.siwiec@vsb.cz>
Date: Tue, 10 Sep 2024 12:53:37 +0200
Subject: [PATCH] Update ssh-key-management.md

---
 .../ssh-key-management.md                     | 33 +++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/docs.it4i/general/accessing-the-clusters/shell-access-and-data-transfer/ssh-key-management.md b/docs.it4i/general/accessing-the-clusters/shell-access-and-data-transfer/ssh-key-management.md
index 76dd2740b..d2524ad0b 100644
--- a/docs.it4i/general/accessing-the-clusters/shell-access-and-data-transfer/ssh-key-management.md
+++ b/docs.it4i/general/accessing-the-clusters/shell-access-and-data-transfer/ssh-key-management.md
@@ -10,7 +10,7 @@ SSH uses public-private key pair for authentication, allowing users to log in wi
 
 A private key file in the `id_rsa` or `*.ppk` format is present locally on local side and used for example in the Pageant SSH agent (for Windows users). The private key should always be kept in a safe place.
 
-An example of private key format:
+### Example of RSA Private Key Format
 
 ```console
     -----BEGIN RSA PRIVATE KEY-----
@@ -42,7 +42,26 @@ An example of private key format:
     -----END RSA PRIVATE KEY-----
 ```
 
-## Public Key
+### Example of Ed25519 Private Key Format
+
+```console
+PuTTY-User-Key-File-3: ssh-ed25519
+Encryption: aes256-cbc
+Comment: eddsa-key-20240910
+Public-Lines: 2
+AAAAC3NzaC1lZDI1NTE5AAAAIBKNwqaWU260wueN00nBGRwIqeOedRedtS0T7QVn
+h0i2
+Key-Derivation: Argon2id
+Argon2-Memory: 8192
+Argon2-Passes: 21
+Argon2-Parallelism: 1
+Argon2-Salt: bb64fc32b368aa16d6e8159c8d921f63
+Private-Lines: 1
++7StvvEmCMchEy1tUyIMLfGTZBk7dgGUpJEJzNl82qmNZD1TmQOqNmCRiK84P/TL
+Private-MAC: dc3f83cef42026a2038f28e96f87367d762e72265621d82e2fe124634ec3c905
+```
+
+### Example of RSA Public Key Format
 
 A public key file in the `*.pub` format is present on the remote side and allows an access to the owner of the matching private key.
 
@@ -52,6 +71,16 @@ An example of public key format:
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpujuOiTKCcGkbbBhrk0Hjmezr5QpM0swscXQE7fOZG0oQSURoapd9tjC9eVy5FvZ339jl1WkJkdXSRtjc2G1U5wQh77VE5qJT0ESxQCEw0S+CItWBKqXhC9E7gFY+UyP5YBZcOneh6gGHyCVfK6H215vzKr3x+/WvWl5gZGtbf+zhX6o4RJDRdjZPutYJhEsg/qtMxcCtMjfm/dZTnXeafuebV8nug3RCBUflvRb1XUrJuiX28gsd4xfG/P6L/mNMR8s4kmJEZhlhxpj8Th0iIc+XciVtXuGWQrbddcVRLxAmvkYAPGnVVOQeNj69pqAR/GXaFAhvjYkseEowQao1 username@organization.example.com
 ```
 
+### Example of Ed25519 Public Key Format
+
+```console
+---- BEGIN SSH2 PUBLIC KEY ----
+Comment: "eddsa-key-20240910"
+AAAAC3NzaC1lZDI1NTE5AAAAIBKNwqaWU260wueN00nBGRwIqeOedRedtS0T7QVn
+h0i2
+---- END SSH2 PUBLIC KEY ----
+```
+
 ## SSH Key Management
 
 You can manage your own SSH key for authentication to clusters:
-- 
GitLab