server_configuration:sftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

server_configuration:sftp [2021/02/01 17:57] – created davidserver_configuration:sftp [2022/07/23 20:49] (current) david
Line 25: Line 25:
 # View groups # View groups
 groups david groups david
 +</code>
 +
 +====== 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 /etc/ssh/sshd_config
 +</code>
 +Change this bit from "yes" to "no":
 +<code>
 +# To disable tunneled clear text passwords, change to no here!
 +PasswordAuthentication no
 +#PermitEmptyPasswords no
 +</code>
 +Restart SSH:
 +<code bash>
 +sudo systemctl restart ssh
 </code> </code>
  
  • server_configuration/sftp.txt
  • Last modified: 2022/07/23 20:49
  • by david