• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1676
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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