Difference between revisions of "Ssh linux"
From Teknologisk videncenter
(Created page with "ssh without a passphrase <source lang=bash> $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys <...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<source lang=bash> | <source lang=bash> | ||
$ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | ||
− | + | $cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | |
− | + | $chmod 0600 ~/.ssh/authorized_keys | |
</source> | </source> | ||
+ | ==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. | ||
[[category:Linux]] | [[category:Linux]] |
Latest revision as of 08:03, 29 October 2023
ssh without a passphrase
$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.