Mac OS X 10.6.5 + Webmin 1.550 + Virtualmin 3.66GPL
After changing some configuration settings with Webmin, inbound ssh connection were no longer possible.
After more investigation it appears that:
1. sshd is correctly started when it does not detach, using $ sudo /usr/sbin/sshd -D -d -e
---
debug1: sshd version OpenSSH_5.2p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-d'
debug1: rexec_argv[3]='-e'
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: fd 5 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug1: sshd version OpenSSH_5.2p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: inetd sockets after dupping: 3, 3
Connection from 1.1.1.247 port 53137
---
2. sshd does not longer start in inetd mode, using $ sudo /usr/sbin/sshd -i -d -e
---
debug1: sshd version OpenSSH_5.2p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: inetd sockets after dupping: 3, 4
BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known
Connection from UNKNOWN port 65535
SSH-2.0-OpenSSH_5.2
---
Any suggestion in which direction to look for a fix?
What settings did you change exactly?
Also, do you have a backup of /etc/ssh/sshd_config to diff with the current version to see what changed?
Not sure what I changed, is there an audit log in webmin?
sshd_config was reverted back to a 2009 version, permissions were repaired, manually double checked permissions again.
Webmin does have logging of file changes, but it isn't enabled by default. You can turn it on at Webmin -> Webmin Configuration -> Logging, by enabling the "Log changes made to files by each action?" option.
Once this is done, the changes made by all future actions can be viewed at Webmin -> Webmin Actions Log.