This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| cheatsheet:ssh [2023/02/21 12:10] – kamaradski | cheatsheet:ssh [2023/02/21 12:24] (current) – kamaradski | ||
|---|---|---|---|
| Line 187: | Line 187: | ||
| In this example, you're connecting to the " | In this example, you're connecting to the " | ||
| + | |||
| + | |||
| + | ===== SSHd settings ===== | ||
| + | |||
| + | Related file: / | ||
| + | |||
| + | ==== disable the use of passwords to login ==== | ||
| + | Note: make sure you have a working key-based login in place before doing this (or local access via a real keyboard/ | ||
| + | |||
| + | < | ||
| + | ChallengeResponseAuthentication no | ||
| + | PasswordAuthentication no | ||
| + | UsePAM no | ||
| + | </ | ||
| + | |||
| + | ==== disable the root account from logging in ==== | ||
| + | |||
| + | < | ||
| + | PermitRootLogin no | ||
| + | # | ||
| + | </ | ||
| + | |||