mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-06-16 05:13:54 -07:00
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:
parent
94a88006df
commit
71a83596f9
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue