From 71a83596f9f48f5cb9cf7d2cd122e6f4557ed4f1 Mon Sep 17 00:00:00 2001 From: aec Date: Thu, 26 Jun 2025 00:59:27 +0200 Subject: [PATCH] Add Wayland method to copy SSH key (#631) Adds a method for using `wl-clipboard` to copy the SSH key on Wayland compositors. Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/631 Reviewed-by: Robert Wolff Reviewed-by: Gusted Co-authored-by: aec Co-committed-by: aec --- content/security/ssh-key.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/security/ssh-key.md b/content/security/ssh-key.md index 7d21585..43506ac 100644 --- a/content/security/ssh-key.md +++ b/content/security/ssh-key.md @@ -77,7 +77,13 @@ be prompted to touch it to continue. 1. Copy the SSH key to your clipboard. You must only copy the public key not the private one. You can identify it by the `.pub` suffix. By default, you can find the public key in `$HOME/.ssh/id_ed25519.pub`. - On Linux you can use `xclip` on the command line. You may need to install it from your package manager. + On Linux, assuming you are using Wayland, you can use `wl-copy` on the command line. You may need to install `wl-clipboard` from your package manager. + + ```shell + wl-copy -t text/plain < ~/.ssh/id_ed25519.pub + ``` + + If your system uses X11, use `xclip` instead. Again, you may need to install it. ```shell xclip -selection clipboard < ~/.ssh/id_ed25519.pub