Skip to content

Commit 28428a1

Browse files
committed
docs: improve cross-platform clipboard support for key copying
- 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 <[email protected]>
1 parent 5ade826 commit 28428a1

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,29 @@ Copy Private Key content and paste in Github Secrets.
122122

123123
### Copy rsa Private key
124124

125+
Before copying the private key, install `clip` command as shown below:
126+
127+
```bash
128+
# Ubuntu
129+
sudo apt-get install xclip
130+
```
131+
132+
copy the private key:
133+
125134
```bash
126-
clip < ~/.ssh/id_rsa
135+
# macOS
136+
pbcopy < ~/.ssh/id_rsa
137+
# Ubuntu
138+
xclip < ~/.ssh/id_rsa
127139
```
128140

129141
### Copy ed25519 Private key
130142

131143
```bash
132-
clip < ~/.ssh/id_ed25519
144+
# macOS
145+
pbcopy < ~/.ssh/id_ed25519
146+
# Ubuntu
147+
xclip < ~/.ssh/id_ed25519
133148
```
134149

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

0 commit comments

Comments
 (0)