From 25f21f69ffffb09f3d9b617a0003b4a20d9f7420 Mon Sep 17 00:00:00 2001 From: timcl Date: Tue, 7 Jul 2026 13:47:08 +0200 Subject: [PATCH] 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 --- content/security/ssh-key.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/security/ssh-key.md b/content/security/ssh-key.md index 42ee878..0d6acf8 100644 --- a/content/security/ssh-key.md +++ b/content/security/ssh-key.md @@ -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`.