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 <mahlzahn@posteo.de>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: aec <aec@noreply.codeberg.org>
Co-committed-by: aec <aec@noreply.codeberg.org>
This commit is contained in:
aec 2025-06-26 00:59:27 +02:00 committed by Gusted
parent 94a88006df
commit 71a83596f9

View file

@ -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