linux:remote_access:openssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:remote_access:openssh [2024/03/12 16:30] – gsys | linux:remote_access:openssh [2026/03/12 20:37] (current) – [Regenerate Host Keys] gsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenSSH ====== | ====== OpenSSH ====== | ||
| + | ===== Permissions ===== | ||
| + | |||
| + | < | ||
| + | ^ File/ | ||
| + | | ~/ | ||
| + | | ~/ | ||
| + | | ~/ | ||
| + | | ~/ | ||
| + | | ~/ | ||
| + | </ | ||
| ===== Harden SSH Access ====== | ===== Harden SSH Access ====== | ||
| Line 34: | Line 44: | ||
| 1. Regeneate Host Keys | 1. Regeneate Host Keys | ||
| < | < | ||
| - | sudo /bin/rm -v / | + | sudo rm -v / |
| - | sudo dpkg-reconfigure openssh-server | + | sudo dpkg-reconfigure openssh-server |
| + | sudo systemctl restart sshd # restart service | ||
| </ | </ | ||
| 2. Delete old Public Keys from clients known_hosts files | 2. Delete old Public Keys from clients known_hosts files | ||
linux/remote_access/openssh.1710257412.txt.gz · Last modified: by gsys