Merge pull request 'Adding notes about ssh key generation 1' (#4) from keygen_2 into main
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -8,7 +8,7 @@ On the new host
|
|||||||
ssh-keygen -t ecdsa
|
ssh-keygen -t ecdsa
|
||||||
```
|
```
|
||||||
|
|
||||||
you could add a -C for comment and then add your emaiul address but... meh
|
You could add a -C for comment and then add your emaiul address but... meh
|
||||||
|
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -39,3 +39,15 @@ The key's randomart image is:
|
|||||||
~$
|
~$
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This will generate 2 keys in the .ssh folder
|
||||||
|
|
||||||
|
```
|
||||||
|
~/.ssh$ ls
|
||||||
|
id_ecdsa id_ecdsa.pub
|
||||||
|
~/.ssh$
|
||||||
|
```
|
||||||
|
|
||||||
|
Use can then cat the .pub file to get the public keyu for that host, which can be added to the authorized_host file of other machines to gain access.
|
||||||
|
|
||||||
|
You can also create an authorized_keys on your cost, and add other ssh pub key to allow them to have direct access to this host.
|
||||||
Reference in New Issue
Block a user