Difference between revisions of "Ssh linux"
From Teknologisk videncenter
m |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
ssh without a passphrase | ssh without a passphrase | ||
| + | |||
| + | On the main host: | ||
| + | <source lang=bash> | ||
| + | ssh-keygen | ||
| + | ssh-copy-id beagle@192.168.100.202 | ||
| + | </source> | ||
| + | or | ||
<source lang=bash> | <source lang=bash> | ||
$ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | ||
| Line 8: | Line 15: | ||
sshguard protects hosts from brute-force attacks against SSH and other services. It aggregates system logs and blocks repeat offenders using one of several firewall backends. | sshguard protects hosts from brute-force attacks against SSH and other services. It aggregates system logs and blocks repeat offenders using one of several firewall backends. | ||
[[category:Linux]] | [[category:Linux]] | ||
| + | ==ssh reverse tunnel== | ||
| + | * https://qbee.io/misc/reverse-ssh-tunneling-the-ultimate-guide/ | ||
Latest revision as of 05:18, 27 June 2025
ssh without a passphrase
On the main host:
ssh-keygen
ssh-copy-id beagle@192.168.100.202
or
$ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
$cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$chmod 0600 ~/.ssh/authorized_keys
sshguard
sshguard protects hosts from brute-force attacks against SSH and other services. It aggregates system logs and blocks repeat offenders using one of several firewall backends.