Difference between revisions of "SSH"

From 6bit.ch wiki
Jump to navigation Jump to search
(Created page with "= Secure Shell = == Regenerate Host Keys (Debian) == 1. <code>rm -v /etc/ssh/ssh_host_*</code></br> 2. <code>dpkg-reconfigure openssh-server</code>")
 
 
Line 1: Line 1:
= Secure Shell =
= Secure Shell =
== ssh ==
<code>-i <key></code> Specify Keyfile</br>
== ssh-keygen ==
<code>-C "Comment"</code> Add comment</br>
<code>-N ""</code> Provide passphrase</br>
<code>-t ed25519</code> Use EdDSA algorithm</br>
== ssh-copy-id ==
<code>-i <key></code> Specify Keyfile</br>


== Regenerate Host Keys (Debian) ==
== Regenerate Host Keys (Debian) ==
1. <code>rm -v /etc/ssh/ssh_host_*</code></br>
1. <code>rm -v /etc/ssh/ssh_host_*</code></br>
2. <code>dpkg-reconfigure openssh-server</code>
2. <code>dpkg-reconfigure openssh-server</code>

Latest revision as of 20:32, 20 August 2025

Secure Shell

ssh

-i <key> Specify Keyfile

ssh-keygen

-C "Comment" Add comment
-N "" Provide passphrase
-t ed25519 Use EdDSA algorithm

ssh-copy-id

-i <key> Specify Keyfile

Regenerate Host Keys (Debian)

1. rm -v /etc/ssh/ssh_host_*
2. dpkg-reconfigure openssh-server