kevinbentlage
Verified User
- Joined
- Jul 15, 2013
- Messages
- 13
Hi,
Since a few weeks we experiencing a weird problem on multiple DA boxes.
When we add a new user through directadmin, with SSH access, the new user can't logon on SSH. Also sshd can't be restarted manually:
[root@uat01 ~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
Job for sshd.service failed because a timeout was exceeded. See "systemctl status sshd.service" and "journalctl -xe" for details.
[root@uat01 ~]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (start) since Mon 2017-01-23 15:38:43 CET; 1min 14s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 1016738 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 1018705 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1009034 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/sshd.service
└─1016740 /usr/sbin/sshd
Jan 23 15:38:43 uat01.****.nl systemd[1]: Starting OpenSSH server daemon...
Jan 23 15:38:43 uat01.****.nl sshd[1018706]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jan 23 15:38:43 uat01.****.nl systemd[1]: PID file /var/run/sshd.pid not readable (yet?) after start.
The strange thing is, that sometimes these problems will occur after adding a new user, but sometimes they don't, and everything is working well. We have these problems on multiple boxes. Some with a high amount of users (50+), and some boxes with a few users (between 1 and 10).
The only way to get SSHD restarted is by rebooting the whole server (sshd is starting normally) or by killing the sshd process with "kill -9" and then start it again.
What we tried:
- Enable PidFile /var/run/sshd.pid in sshd_conf (disabled by default)
- Removed all ssh public keys that are added to several users
We're experience these problems on CentOS 7.1 boxes with up2date DirectAdmin installs.
Does anyone have any idea where this problems are caused?
Since a few weeks we experiencing a weird problem on multiple DA boxes.
When we add a new user through directadmin, with SSH access, the new user can't logon on SSH. Also sshd can't be restarted manually:
[root@uat01 ~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
Job for sshd.service failed because a timeout was exceeded. See "systemctl status sshd.service" and "journalctl -xe" for details.
[root@uat01 ~]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (start) since Mon 2017-01-23 15:38:43 CET; 1min 14s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 1016738 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 1018705 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1009034 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/sshd.service
└─1016740 /usr/sbin/sshd
Jan 23 15:38:43 uat01.****.nl systemd[1]: Starting OpenSSH server daemon...
Jan 23 15:38:43 uat01.****.nl sshd[1018706]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jan 23 15:38:43 uat01.****.nl systemd[1]: PID file /var/run/sshd.pid not readable (yet?) after start.
The strange thing is, that sometimes these problems will occur after adding a new user, but sometimes they don't, and everything is working well. We have these problems on multiple boxes. Some with a high amount of users (50+), and some boxes with a few users (between 1 and 10).
The only way to get SSHD restarted is by rebooting the whole server (sshd is starting normally) or by killing the sshd process with "kill -9" and then start it again.
What we tried:
- Enable PidFile /var/run/sshd.pid in sshd_conf (disabled by default)
- Removed all ssh public keys that are added to several users
We're experience these problems on CentOS 7.1 boxes with up2date DirectAdmin installs.
Does anyone have any idea where this problems are caused?