fun4uoc
Supreme Member
- Dec 25, 2007
- 1,205
- 1,049
I'm an extreme newbie when it comes to Linux but am trying to learn as much as I can. I have an unmanaged VPS with full root access running Centos5 and recently ran into some trouble.
Up until yesterday I have been able to have access via ssh using putty but tried to log on yesterday and got a network connect error immediately upon trying to connect.
I logged on to my Virtuozzo control panel and saw that ssh was set to start automatically but was currently stopped. I tried restarting it and got the following error.
Start service - Failed
Started Operation Status
Nov 15, 2008 07:27:43 PM Operation start with the VPS(s) VEID51266923 service "sshd" is started. Completed
Nov 15, 2008 07:27:43 PM Starting sshd: /etc/ssh/sshd_config: line 40: Bad configuration option: adduser Completed
Nov 15, 2008 07:27:43 PM /etc/ssh/sshd_config: line 41: Bad configuration option: passwd Completed
Nov 15, 2008 07:27:43 PM /etc/ssh/sshd_config: terminating, 2 bad configuration options Completed
Nov 15, 2008 07:27:43 PM [FAILED] Completed
Nov 15, 2008 07:27:43 PM Operation start with the VPS(s) VEID51266923 service "sshd" is finished with errors: #703 Can not start/stop/restart service: Starting sshd: /etc/ssh/sshd_config: line 40: Bad configuration option: adduser /etc/ssh/sshd_config: line 41: Bad configuration option: passwd /etc/ssh/sshd_config: terminating, 2 bad configuration options [FAILED] . Failed
I am able to put the server into repair mode and can then log on via ssh but am unsure where to go from there. Any help would be much appreciated.
Up until yesterday I have been able to have access via ssh using putty but tried to log on yesterday and got a network connect error immediately upon trying to connect.
I logged on to my Virtuozzo control panel and saw that ssh was set to start automatically but was currently stopped. I tried restarting it and got the following error.
Start service - Failed
Started Operation Status
Nov 15, 2008 07:27:43 PM Operation start with the VPS(s) VEID51266923 service "sshd" is started. Completed
Nov 15, 2008 07:27:43 PM Starting sshd: /etc/ssh/sshd_config: line 40: Bad configuration option: adduser Completed
Nov 15, 2008 07:27:43 PM /etc/ssh/sshd_config: line 41: Bad configuration option: passwd Completed
Nov 15, 2008 07:27:43 PM /etc/ssh/sshd_config: terminating, 2 bad configuration options Completed
Nov 15, 2008 07:27:43 PM [FAILED] Completed
Nov 15, 2008 07:27:43 PM Operation start with the VPS(s) VEID51266923 service "sshd" is finished with errors: #703 Can not start/stop/restart service: Starting sshd: /etc/ssh/sshd_config: line 40: Bad configuration option: adduser /etc/ssh/sshd_config: line 41: Bad configuration option: passwd /etc/ssh/sshd_config: terminating, 2 bad configuration options [FAILED] . Failed
I am able to put the server into repair mode and can then log on via ssh but am unsure where to go from there. Any help would be much appreciated.
Last edited: