How should one properly restart sshd
or otherwise let it know that its configuration file has changed? Apparently sudo restart sshd
is no longer the proper way to do this, as attempting to do so gives
restart: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
systemd
based ( 16.04 and newer ). In that case you have to usesystemctl restart sshd
. To check the config you can usesudo sshd -t
.