Jump to content

SSH: Difference between revisions

From sexy wiki
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>"
 
 
(2 intermediate revisions by the same user not shown)
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>
== Pull remote port to local machine ==
<code>ssh -L 9200:127.0.0.1:9200 server.name.tld</code>

Latest revision as of 11:45, 12 November 2026

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

Pull remote port to local machine

ssh -L 9200:127.0.0.1:9200 server.name.tld