User Tools

Site Tools


networking:ssh:ssh-keys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:ssh:ssh-keys [2021/11/09 16:29] – created chucknetworking: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 ''%%~/.ssh%%'':<code bash>   * Change to ''%%~/.ssh%%'':<code bash>
 cd ~/.ssh cd ~/.ssh
 </code> </code>
-  * Generate **RSA** ssh key:<code bash> +  * Generate an **Ed25519** ssh key:<code bash> 
-ssh-keygen -f keyname -t rsa -b 4096 -o -a 256+ssh-keygen -t ed25519 -a 256
 </code> </code>
-  * Generate **RSA** ssh key with a specific name:<code bash> +  * Generate an **Ed25519** ssh key with a specific name:<code bash> 
-ssh-keygen -t rsa -b 4096 -o -a 256+ssh-keygen -f <keyname> -t ed25519 -a 256
 </code> </code>
  
 ---- ----
  
-====ED25519====+====RSA====
   * Change to ''%%~/.ssh%%'':<code bash>   * Change to ''%%~/.ssh%%'':<code bash>
 cd ~/.ssh cd ~/.ssh
 </code> </code>
-  * Generate an **Ed25519** ssh key:<code bash> +  * Generate **RSA** ssh key:<code bash> 
-ssh-keygen -t ed25519 -a 256+ssh-keygen -t rsa -b 4096 -o -a 256
 </code> </code>
-  * Generate an **Ed25519** ssh key with a specific name:<code bash> +  * Generate **RSA** ssh key with a specific name:<code bash> 
-ssh-keygen -f keyname -t ed25519 -a 256+ssh-keygen -f <keyname-t rsa -b 4096 -o -a 256
 </code> </code>
  
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.
-</code> 
- 
----- 
- 
-=====Known Hosts File===== 
-  * Remove Key from known_hosts using hostname:<code bash> 
-ssh-keygen -R server-name 
-</code> 
-  * Remove Key from known_hosts using ip address:<code bash> 
-ssh-keygen -R xxx.xxx.xxx.xxx 
 </code> </code>
  
Line 128: Line 117:
  
 =====Links===== =====Links=====
 +  * https://manpages.debian.org/stable/openssh-client/ssh.1.en.html 
 +  * https://manpages.debian.org/stable/openssh-client/ssh-keygen.1.en.html 
 +  * https://manpages.debian.org/stable/openssh-client/ssh-add.1.en.html 
 +  * https://manpages.debian.org/stable/openssh-client/ssh-copy-id.1.en.html
  
  
networking/ssh/ssh-keys.1636493372.txt.gz · Last modified: 2021/11/09 16:29 by chuck