Use ed25519 instead of rsa for ssh
parent
c9356563ca
commit
44a3d716bd
|
@ -39,7 +39,7 @@ ssh-keygen -R remote_host
|
||||||
Generate key:
|
Generate key:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh-keygen -t rsa -b 4096 -C "your@email.com"
|
ssh-keygen -t ed25519 -C "your@email.com"
|
||||||
```
|
```
|
||||||
|
|
||||||
Start `ssh-agent`:
|
Start `ssh-agent`:
|
||||||
|
@ -51,17 +51,25 @@ eval "$(ssh-agent -s)"
|
||||||
Add key:
|
Add key:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh-add ~/.ssh/id_rsa
|
ssh-add ~/.ssh/id_ed25519
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Copying public key to server:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@server-address
|
||||||
|
```
|
||||||
|
|
||||||
|
#### ssh-add
|
||||||
|
|
||||||
Confirm key has been added:
|
Confirm key has been added:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh-add -l
|
ssh-add -l
|
||||||
```
|
```
|
||||||
|
|
||||||
Copying public key to server:
|
Delete all keys:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server-address
|
ssh-add -D
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue