networking:ssh:ssh-keys
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
networking:ssh:ssh-keys [2021/11/09 16:29] – created chuck | networking:ssh:ssh-keys [2022/05/06 22:53] (current) – [Links] chuck | ||
---|---|---|---|
Line 1: | Line 1: | ||
======SSH Key Management====== | ======SSH Key Management====== | ||
- | This page will assist in setting up and maintaining SSH keys. | + | This page is meant to assist in setting up and maintaining SSH keys. |
---- | ---- | ||
Line 21: | Line 21: | ||
=====Generating SSH Keys===== | =====Generating SSH Keys===== | ||
- | + | ====ED25519==== | |
- | ====RSA==== | + | |
* Change to '' | * Change to '' | ||
cd ~/.ssh | cd ~/.ssh | ||
</ | </ | ||
- | * Generate | + | * Generate |
- | ssh-keygen | + | ssh-keygen -t ed25519 |
</ | </ | ||
- | * Generate | + | * Generate |
- | ssh-keygen -t rsa -b 4096 -o -a 256 | + | ssh-keygen -f < |
</ | </ | ||
---- | ---- | ||
- | ====ED25519==== | + | ====RSA==== |
* Change to '' | * Change to '' | ||
cd ~/.ssh | cd ~/.ssh | ||
</ | </ | ||
- | * Generate | + | * Generate |
- | ssh-keygen -t ed25519 | + | ssh-keygen -t rsa -b 4096 -o -a 256 |
</ | </ | ||
- | * Generate | + | * Generate |
- | ssh-keygen -f keyname -t ed25519 | + | ssh-keygen -f <keyname> -t rsa -b 4096 -o -a 256 |
</ | </ | ||
Line 103: | Line 102: | ||
Enter new comment: user@newname | Enter new comment: user@newname | ||
The comment in your key file has been changed. | The comment in your key file has been changed. | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | =====Known Hosts File===== | ||
- | * Remove Key from known_hosts using hostname:< | ||
- | ssh-keygen -R server-name | ||
- | </ | ||
- | * Remove Key from known_hosts using ip address:< | ||
- | ssh-keygen -R xxx.xxx.xxx.xxx | ||
</ | </ | ||
Line 128: | Line 117: | ||
=====Links===== | =====Links===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
networking/ssh/ssh-keys.1636493372.txt.gz · Last modified: 2021/11/09 16:29 by chuck