Skip to content

Commit

Permalink
docs: improve cross-platform clipboard support for key copying
Browse files Browse the repository at this point in the history
- Add instructions to install `xclip` on Ubuntu before copying the private key
- Replace `clip` command with platform-specific commands (`pbcopy` for macOS and `xclip` for Ubuntu) for copying the private key

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jul 14, 2024
1 parent 5ade826 commit 28428a1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,29 @@ Copy Private Key content and paste in Github Secrets.

### Copy rsa Private key

Before copying the private key, install `clip` command as shown below:

```bash
# Ubuntu
sudo apt-get install xclip
```

copy the private key:

```bash
clip < ~/.ssh/id_rsa
# macOS
pbcopy < ~/.ssh/id_rsa
# Ubuntu
xclip < ~/.ssh/id_rsa
```

### Copy ed25519 Private key

```bash
clip < ~/.ssh/id_ed25519
# macOS
pbcopy < ~/.ssh/id_ed25519
# Ubuntu
xclip < ~/.ssh/id_ed25519
```

See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html).
Expand Down

0 comments on commit 28428a1

Please sign in to comment.