All about service ssh in solaris

For Solaris 9 :
for disable service ssh
# /etc/init.d/sshd stop or
# /etc/rc3.d/S89sshd stop

for enable service ssh
# /etc/init.d/sshd start or
# /etc/rc3.d/S89sshd start

for a root enable connect to host via ssh service :
# vi /etc/ssh/sshd_config
.............
# Valid options are yes, without-password, no.
PermitRootLogin no
.............

Replace no with yes, after that save the edited configuration.
Don’t forget for the restart service ssh, after edit configuration.
with /etc/init.d/sshd stop and /etc/init.d/sshd start.

For refresh service ssh:
# kill -HUP `cat /var/run/sshd.pid`

For Solaris 10 :
first you can check service ssh with command

# svcs | grep ssh
online Jan_21 svc:/network/ssh:default

If status ssh ofline, you can make online with command:
# svcadm enable -t network/ssh:default or
# /lib/svc/method/sshd start

For disable service ssh:
# svcadm disable -t network/ssh:default

For restart service ssh:
# svcadm restart network/ssh:default or
# /lib/svc/method/sshd restart

For refresh service ssh:
# svcadm refresh network/ssh:default

Popularity: 51% [?]

You Should Also Check Out This Post:

More Active Posts: