User Tools

Site Tools


pages:howtos:ssh:generate-ssh-key

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:howtos:ssh:generate-ssh-key [2023/03/04 16:44] – [Ed25519] mischerhpages:howtos:ssh:generate-ssh-key [2023/07/31 10:11] (current) – [Ed25519] mischerh
Line 10: Line 10:
 ===== Ed25519 ===== ===== Ed25519 =====
 <sxh bash; gutter: false> <sxh bash; gutter: false>
-ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "$USER@$HOST"+TMPDATE="$( printf '%(%Y%m%d-%H%M%S)T\n' -1 )"; ssh-keygen -a 100 -t ed25519 -f "${HOME}/.ssh/id_ed25519-${USER}-${HOSTNAME:-$(hostname)}-${TMPDATE}" -C "$USER@${HOSTNAME:-$(hostname)}-${TMPDATE}";
 </sxh> </sxh>
  
 ===== RSA ===== ===== RSA =====
 <sxh bash; gutter: false> <sxh bash; gutter: false>
-ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -C "user@host"+ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -C "$USER@${HOSTNAME:-$(hostname)}"
 </sxh> </sxh>
  
 ---- ----
 ~~DISCUSSION~~ ~~DISCUSSION~~
pages/howtos/ssh/generate-ssh-key.1677948258.txt.gz · Last modified: 2023/03/04 16:44 by mischerh