enable the ssh


 
Thread Tools Search this Thread
Operating Systems Solaris enable the ssh
# 1  
Old 02-01-2011
enable the ssh

hi,
i want to enable ssh on my solaris,i use $svcs -p ssh it showing
STATE STIME FMRI
maintenance 10:06:16 svc:/network/ssh:default

why the state in maintenance state, so i could n't able to login using ssh.
pls help me to enable ssh.


thanks,

Last edited by shankr3; 02-01-2011 at 09:09 AM..
# 2  
Old 02-01-2011
The ssh process relies on a a series of other services and if those services are still in maintenance then ssh will fail to come up.
You need to check the dependencies first and make sure those are started:

Code:
bash-3.00# svcs -l ssh
fmri         svc:/network/ssh:default
name         SSH server
enabled      true
state        online
next_state   none
state_time   January 28, 2011 12:14:24 AM EST
logfile      /var/svc/log/network-ssh:default.log
restarter    svc:/system/svc/restarter:default
contract_id  76
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (online)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (online)
dependency   require_all/restart file://localhost/etc/ssh/sshd_config (online)

Also, check the logs:

Code:
svcs -xv ssh


See what else is in maintenance:

Code:
svcs -a |grep maintenace


Last edited by s0lman; 02-01-2011 at 11:23 PM.. Reason: Additional Info
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Enable lpfc changes!

Hi Folks! I am writing a script which changes lpfc.conf if there it has been setup on RHEL BOXes, do I need to put dracut -f for enabling it? I am not sure, Can someone help! (6 Replies)
Discussion started by: nixhead
6 Replies

2. SCO

Auditing: how to enable?

edit: solution found Auditing Quick Start and Compatibility Notes (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

3. SCO

enable ssh server on SCO 5.0.6

hi How to enable ssh server on SCO unix 5.0.6 and allow remote root login? (2 Replies)
Discussion started by: ccc
2 Replies

4. Cybersecurity

Enable SSH for root over certain network connection of a server...is it possible?

Hi - I have a SUSE Enterprise Linux Server V9 that I have an issue with. Policy says that root connectivity via ssh needs to be disabled. So, to do that, I made the following change in the sshd_config section: # Authentication: #LoginGraceTime 2m #PermitRootLogin yes PermitRootLogin no... (3 Replies)
Discussion started by: cpolikowsky
3 Replies

5. Solaris

SSH enable, Telnet disable ...

Hi... How do I enable SSH and disable telnet.. Also - is there anything special I need to do to ensure that a new user can use ssh and su but not telnet? Adel (15 Replies)
Discussion started by: ArabOracle.com
15 Replies

6. AIX

Enable SMT

How to enable SMT in aix 5.2 ml 9? If i run smtctl it gives error ksh: smtctl: not found. please tell me if SMT is supported in 5.2 (4 Replies)
Discussion started by: vjm
4 Replies

7. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

8. Solaris

enable log

dear all i want to enable the below logs can you help me /var/adm/xferlog /var/spool/uucp/.Admin thanx you (0 Replies)
Discussion started by: murad.jaber
0 Replies

9. UNIX for Dummies Questions & Answers

how do I enable ssh for RH Linux Enterprise

I am not sure how to enable SSH on my RedHat Linux Server. Do I need to install a rpm or just edit a file. Thanks in advance. (1 Reply)
Discussion started by: newbie05
1 Replies
Login or Register to Ask a Question