software:service:ssh
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| software:service:ssh [2021/12/31 18:45] – created warnaud | software:service:ssh [2025/02/18 08:44] (current) – warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== SSH ====== | ||
| + | ===== sshd_config ===== | ||
| + | After change, restart sshd unit (systemd)\\ | ||
| + | Edit / | ||
| + | ==== no IPv6 ==== | ||
| + | <code perl> | ||
| + | # | ||
| + | AddressFamily inet | ||
| + | </ | ||
| + | |||
| + | ==== Root key only ==== | ||
| + | <code perl> | ||
| + | PermitRootLogin prohibit-password | ||
| + | # | ||
| + | </ | ||
| + | ==== Users key only ==== | ||
| + | <code perl> | ||
| + | PubkeyAuthentication yes | ||
| + | ... | ||
| + | # To disable tunneled clear text passwords, change to no here! | ||
| + | PasswordAuthentication no | ||
| + | PermitEmptyPasswords no | ||
| + | </ | ||
| + | |||
| + | ==== Check ==== | ||
| + | <code bash> sudo sshd -T | grep -E ' | ||
| + | </ | ||
| + | ===== .ssh/config ===== | ||
| + | |||
| + | ===== examples ===== | ||
