SSH connection only with SSH-Key

Aus Laemmi´s Wiki
Wechseln zu: Navigation, Suche

Only allow SSH Connections with SSH-Keys

sudo vi /etc/sshd_config
PasswordAuthentication no
PermitEmptyPasswords no
UsePAM no

Restart SSH services

sudo launchctl unload  /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist