mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
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:
parent
9b655b9b37
commit
25f21f69ff
1 changed files with 2 additions and 2 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue