Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
server_configuration:sftp [2021/02/01 17:57] – created david | server_configuration:sftp [2025/03/27 15:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 25: | Line 25: | ||
# View groups | # View groups | ||
groups david | groups david | ||
+ | </ | ||
+ | |||
+ | ====== Disable Passwords ====== | ||
+ | |||
+ | Make sure you have a key (or a host who can let you back in if you loose it) before doing this. | ||
+ | |||
+ | Edit the file: | ||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | Change this bit from " | ||
+ | < | ||
+ | # To disable tunneled clear text passwords, change to no here! | ||
+ | PasswordAuthentication no | ||
+ | # | ||
+ | </ | ||
+ | Restart SSH: | ||
+ | <code bash> | ||
+ | sudo systemctl restart ssh | ||
</ | </ | ||