SSH-Key clip recommendations do not work with powershell (#824)

[https://docs.codeberg.org/security/ssh-key/](https://docs.codeberg.org/security/ssh-key/) currently recommends this: `clip < ~/.ssh/id_ed25519.pub` for copying on windows. This however breaks with pwsh (which is becoming more and more the default on windows) with:  *The '<' operator is reserved for future use.*
This pr adresses this by proposing `gc ~/.ssh/id_ed25519.pub | clip` for pwsh.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/824
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
This commit is contained in:
timcl 2026-07-07 13:47:08 +02:00 committed by Robert Wolff
parent 9b655b9b37
commit 25f21f69ff

View file

@ -87,10 +87,10 @@ be prompted to touch it to continue.
xclip -selection clipboard < ~/.ssh/id_ed25519.pub
```
On Windows you can use `clip`.
On Windows you can use `clip` (powershell)
```shell
clip < ~/.ssh/id_ed25519.pub
gc ~/.ssh/id_ed25519.pub | clip
```
On macOS you can use `pbcopy`.