Jump to content

SSH: Difference between revisions

From sexy wiki
No edit summary
 
Line 17: Line 17:


== Pull remote port to local machine ==
== Pull remote port to local machine ==
<code>ssh 9200:127.0.0.1:9200 server.name.tld</code>
<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