I tried to start SSH Server in Virtualmin with no success. Luckily I've had ssh connection, which is still active. Now trying to make it work.
If I run /etc/rc.d/init.d/sshd start it gives:
Starting sshd: [ OK ]
However, running /etc/rc.d/init.d/sshd status gives:
openssh-daemon is stopped
and SSH Server is still not shown as UP in Virtualmin.
/var/log/messages show
Oct 23 01:16:40 host setroubleshoot: SELinux is preventing ifconfig (ifconfig_t) "read write" to /var/webmin/sessiondb.pag (var_t). For complete$ Oct 23 01:21:50 host setroubleshoot: SELinux is preventing ifconfig (ifconfig_t) "read write" to /var/webmin/sessiondb.pag (var_t). For complete$ Oct 23 01:26:53 host setroubleshoot: SELinux is preventing ifconfig (ifconfig_t) "read write" to /var/webmin/sessiondb.pag (var_t). For complete$
I am not sure if the problem with SSH has something with Selinux, but I remember disabling Selinux during installation of Virtualmin. Has Vitualmin stated it again? Do we need selinux at all?
Problem solved. Thanks. But the question about Selinux is still actual. Do we need it if in order to run Virtualmin we switched it off anyway? Maybe it is better to completely to take it off?
Yeah, it sounds like in your case, something about SELinux is odd. It shouldn't prevent you from starting/restarting SSH.
Do you need it? No, you don't.
It's a security tool, and adds a layer of protection to your server. However, I believe it's turned off on most Virtualmin installations.
The issue you're seeing doesn't appear to be Virtualmin specific though, which leads me to believe some other SELinux issue has come up.
However, it's not needed for your server or Virtualmin to run. And it's possible to run a secure server without it :-)
-Eric