add ed25519 ssh key generation instructions
This commit is contained in:
parent
5da38f91ba
commit
38cad7f0a8
62
README.md
62
README.md
@ -79,28 +79,82 @@ out: ***
|
|||||||
==============================================
|
==============================================
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setting up SSH Key
|
### Setting up a SSH Key
|
||||||
|
|
||||||
Make sure to follow the below steps while creating SSH Keys and using them.
|
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.
|
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:
|
Login with username specified in Github Secrets. Generate a RSA Key-Pair:
|
||||||
|
|
||||||
```bash
|
<details>
|
||||||
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
<summary>rsa</summary>
|
||||||
```
|
<p>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
||||||
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>ed25519</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh-keygen -t ed25519 -a 200 -C "your_email@example.com"
|
||||||
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/).
|
Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/).
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>rsa</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
|
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>ed25519</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat .ssh/id_ed25519.pub | ssh b@B 'cat >> .ssh/authorized_keys'
|
||||||
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
Copy Private Key content and paste in Github Secrets.
|
Copy Private Key content and paste in Github Secrets.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>rsa</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clip < ~/.ssh/id_rsa
|
clip < ~/.ssh/id_rsa
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>ed25519</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clip < ~/.ssh/id_ed25519
|
||||||
|
```
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html)
|
See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html)
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
Loading…
Reference in New Issue
Block a user