• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1755
  • Last Modified:

refresh ssh services on Solaris

How do I refresh ssh services on Solaris, Like start and stop.
0
vishwakarmak
Asked:
vishwakarmak
  • 3
  • 2
  • 2
  • +1
1 Solution
 
awa2008Commented:
For Solaris 10

svcadm ssh restart
0
 
omarfaridCommented:
to check service status, use

svcs ssh

to stop, use

svcadm disable ssh

to start. use

svcadm enable ssh
0
 
Brian UtterbackPrinciple Software EngineerCommented:
And to have sshd re-read the configuration file, you can use the restart option:

svcadm restart ssh
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
vishwakarmakAuthor Commented:
I have solaris 8 and solaris 9 running and I think svcadm is not supported
0
 
omarfaridCommented:
use

ps -ef

to get pid of sshd and then run

kill -1 pid

to start it

/usr/local/sbin/sshd

0
 
vishwakarmakAuthor Commented:
Is this the only way is there any command to do this operation
0
 
omarfaridCommented:
which sshd do you run on your system?
0
 
Brian UtterbackPrinciple Software EngineerCommented:
You can use the pkill command:

pkill -1 sshd

This will refresh the sshd and cause it to reread the config file.

Solaris 9 systems come with ssh pre-installed, so there is already a start up script. So to start sshd run:

cd /etc/init.d
./sshd start

to stop it:

cd /etc/init.d
./sshd stop

And to refresh it:

cd /etc/init.d
./sshd restart

Note that the flag is "restart" and not "refresh"

If you have a Solaris 8 system with ssh, it must have been added later. However, it almost certainly behaves
in the same way regarding the start and stop script. IT might or might not have the restart option though. Check
in /etc/init.d to see.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now