svc:/network/ssh:default (SSH server)
State: maintenance since Fri Jan 27 14:19:58 2012
Reason: Start method failed repeatedly, last exited with status 255.
See: URL
See: man -M /usr/share/man -s 1M sshd
See: /var/svc/log/network-ssh:default.log
Impact: This service is not running.
bash-3.00#
Someone please help
---------- Post updated at 02:30 PM ---------- Previous update was at 02:27 PM ----------
bash-3.00# svcs -v ssh
STATE NSTATE STIME CTID FMRI
maintenance - 14:19:58 - svc:/network/ssh:default
Post output of:
tail -20 /var/svc/log/network-ssh:default.log
1 Like
bash-3.00# tail -20 /var/svc/log/network-ssh:default.log
[ Jan 24 00:44:09 Method "start" exited with status 255 ]
[ Jan 27 13:08:10 Executing start method ("/lib/svc/method/sshd start") ]
/etc/ssh/sshd_config: line 18: Bad configuration option: for
/etc/ssh/sshd_config: terminating, 1 bad configuration options
[ Jan 27 13:08:11 Method "start" exited with status 255 ]
[ Jan 27 13:08:11 Executing start method ("/lib/svc/method/sshd start") ]
/etc/ssh/sshd_config: line 18: Bad configuration option: for
/etc/ssh/sshd_config: terminating, 1 bad configuration options
[ Jan 27 13:08:11 Method "start" exited with status 255 ]
[ Jan 27 13:08:12 Executing start method ("/lib/svc/method/sshd start") ]
/etc/ssh/sshd_config: line 18: Bad configuration option: for
/etc/ssh/sshd_config: terminating, 1 bad configuration options
[ Jan 27 13:08:12 Method "start" exited with status 255 ]
[ Jan 27 14:19:32 Leaving maintenance because disable requested. ]
[ Jan 27 14:19:32 Disabled. ]
[ Jan 27 14:19:57 Enabled. ]
[ Jan 27 14:19:57 Executing start method ("/lib/svc/method/sshd start") ]
/etc/ssh/sshd_config: line 18: Bad configuration option: for
/etc/ssh/sshd_config: terminating, 1 bad configuration options
[ Jan 27 14:19:57 Method "start" exited with status 255 ]
1 Like
/etc/ssh/sshd_config: line 18: Bad configuration option: for
This should give you a clue to where to look.
1 Like
/ets/ssh/sshd_config file looks wierd. I mean i am accessing through console. not able to edit or view it properly
---------- Post updated at 02:45 PM ---------- Previous update was at 02:45 PM ----------
i mean remote console through telnet
Are you opening it in vi
? If so try:
export TERM=ansi; vi /etc/ssh/sshd_config
1 Like
Thanks a lot. figured it out. Thanks for your time.
in /etc/ssh/sshd_config file some comment was un-commented. i re-commented it and restarted the ssh service. it worked.