SSH Prohibit Password: Because friends don't let friends ssh with passwords
https://webinstall.dev/sshd-prohibit-password| Installer Source| Releases (json) (tab)
SSH Prohibit Password: Because friends don't let friends ssh with passwords
https://webinstall.dev/sshd-prohibit-password| Installer Source| Releases (json) (tab)
Will check if your system This will check if your Modern SSH deployments are key-only and don't allow root login. However, there's a lot of legacy systems out there.
sshd-prohibit-password
will inspect /etc/ssh/sshd_config
and
PasswordAuthentication
is no
PermitRootLogin
is no
or prohibit-password
without-password
, for older systems)UsePAM
is no
This will run automatically and uses sudo
to make changes.
- #PasswordAuthentication yes
+ PasswordAuthentication no
- #PermitRootLogin yes
+ PermitRootLogin prohibit-password
# macOS only
- UsePAM yes
+ UsePAM no
# Ubuntu / Debian / RedHat
sudo systemctl restart sshd
# Alpine / Gentoo
sudo rc-service sshd restart
# macOS
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
# others
killall sshd