SSH in maintainance mode in solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris SSH in maintainance mode in solaris 10
# 1  
Old 01-27-2012
SSH in maintainance mode in solaris 10

Code:
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 ----------

Code:
bash-3.00# svcs -v ssh
STATE          NSTATE        STIME    CTID   FMRI
maintenance    -             14:19:58      - svc:/network/ssh:default


Last edited by DukeNuke2; 01-27-2012 at 05:18 PM..
# 2  
Old 01-27-2012
Post output of:
Code:
tail -20 /var/svc/log/network-ssh:default.log

This User Gave Thanks to bartus11 For This Post:
# 3  
Old 01-27-2012
Code:
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 ]


Last edited by DukeNuke2; 01-27-2012 at 05:20 PM..
This User Gave Thanks to srinathk For This Post:
# 4  
Old 01-27-2012
Code:
/etc/ssh/sshd_config: line 18: Bad configuration option: for

This should give you a clue to where to look.
This User Gave Thanks to bartus11 For This Post:
# 5  
Old 01-27-2012
/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
# 6  
Old 01-27-2012
Are you opening it in vi? If so try:
Code:
export TERM=ansi; vi /etc/ssh/sshd_config

This User Gave Thanks to bartus11 For This Post:
# 7  
Old 01-27-2012
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Console-login in maintainance mode

I have a v490 server running Solaris 10. Everytime I reboot this machine, the console-login service goes to maintainance mode and I have to provide the root password. All the other dependencies are running fine and nothing there in the logs too. To bring it online, I have to enable it manually. ... (1 Reply)
Discussion started by: aksijain
1 Replies

2. Solaris

Unable to login to solaris9 server using SSH mode

Unable to login to solaris9 server using SSH mode for root as well as genreal logins. Please find the configuration file . oss@HYDOHS02:ssh> cat sshd_config # # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #pragma ident "@(#)sshd_config ... (6 Replies)
Discussion started by: hydoss1
6 Replies

3. HP-UX

how to run glance over ssh in batch mode

Hello; Is it possible to run glance over ssh in batch mode ?? Similar to running " top -f " command over ssh.. Need to get glance output for specific pids Thnx very much (5 Replies)
Discussion started by: delphys
5 Replies

4. Linux

How to switch from command to SSH mode?

Hi all, I am new to CentOS and have been always using the server remotely using puTTy. I needed to access the machine from the console so I did a Alt+F2. Now I would like to go back to using the machine remotely via SSH. Can you please let me know what keys on the console I should hit to be... (6 Replies)
Discussion started by: tezarin
6 Replies

5. Solaris

Helpme !! ssh service in maintenance mode

Hi Guys, Virtual Machine - Solaris 10 ssh service is in maintenance mode, when i tried to disable it it got disabled but when i enabling it ( svcadm enable ssh) it is coming in maintenance mode...... Pls help (10 Replies)
Discussion started by: saurabh84g
10 Replies

6. Solaris

Solaris in GUI mode

Hi we work on solaris machines and access them in Command line mode using telnet services. Can they be accessed in GUI mode. If yes please advice as I have came to know that Solaris 9.0 supports GUI mode also. (1 Reply)
Discussion started by: sukhvinder_Tm
1 Replies

7. Shell Programming and Scripting

SSH in batch mode and File-Handles in a loop

Hi all I try to execute SSH commands on several hosts in a while-loop. There seems to be a problem with file-handle, first cycle works correct but no other one will follow due to the while condition is false even that there are many more host entries (lines) in all_hosts.dat. ... (3 Replies)
Discussion started by: DaveCutler
3 Replies

8. Solaris

trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6)

I am currently setting up rdiff-backup to use ssh to connect and remotely backup and retrieve data. I am doing so by creating rsa keys for each server and copying the relevant key to the /.ssh folder on the relevant server. All seems to work well when severs running solaris 8 with ssh 3.6.1 are... (6 Replies)
Discussion started by: falklandtim
6 Replies

9. UNIX for Dummies Questions & Answers

solaris forth mode?

hi i have a headless ultra 10 server running obp 3.29 i connect to the sever via telnet and i was wondering what is the command inorder to get to the forth mode from a telnet session? is it even possible to get to the ok prompt from telnet or do i need a serial connection? many thanks (2 Replies)
Discussion started by: xNYx
2 Replies

10. UNIX for Dummies Questions & Answers

restricted mode (solaris 8)

HI I was wondering how do i get in to the restricted mode in solaris > I can get into the ok prompt ok> or the fourth monitor mode but not the restricted mode > any ideas thanks (3 Replies)
Discussion started by: xNYx
3 Replies
Login or Register to Ask a Question