-
-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,41 +85,41 @@ Make sure to follow the below steps while creating SSH Keys and using them. | |
The best practice is create the SSH Keys on local machine not remote machine. | ||
Login with username specified in Github Secrets. Generate a RSA Key-Pair: | ||
|
||
rsa | ||
### Generate rsa key | ||
|
||
```bash | ||
ssh-keygen -t rsa -b 4096 -C "[email protected]" | ||
``` | ||
|
||
ed25519 | ||
### Generate ed25519 key | ||
|
||
```bash | ||
ssh-keygen -t ed25519 -a 200 -C "[email protected]" | ||
``` | ||
|
||
Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/). | ||
|
||
rsa | ||
### Add rsa key into Authorized keys | ||
|
||
```bash | ||
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys' | ||
``` | ||
|
||
ed25519 | ||
### Add ed25519 key into Authorized keys | ||
|
||
```bash | ||
cat .ssh/id_ed25519.pub | ssh b@B 'cat >> .ssh/authorized_keys' | ||
``` | ||
|
||
Copy Private Key content and paste in Github Secrets. | ||
|
||
rsa | ||
### Copy rsa Private key | ||
|
||
```bash | ||
clip < ~/.ssh/id_rsa | ||
``` | ||
|
||
ed25519 | ||
### Copy ed25519 Private key | ||
|
||
```bash | ||
clip < ~/.ssh/id_ed25519 | ||
|