Ssh in Solaris
This post is about service ssh in solaris 9 or 10
Solaris 9
Disable service ssh ?
bash> /etc/init.d/sshd stop bash> /etc/rc3.d/S89sshd stop
Enable service ssh ?
bash> /etc/init.d/sshd start bash> /etc/rc3.d/S89sshd start
Refresh service ssh ?
bash> kill -HUP `cat /var/run/sshd.pid`
Solaris 10
First you can check service ssh with command
bash> svcs | grep ssh online Jan_21 svc:/network/ssh:default
If status ssh offline, you can make online with command:
bash> svcadm enable -t network/ssh:default bash> /lib/svc/method/sshd start
Disable service ssh ?
bash> svcadm disable -t network/ssh:default
Restart service ssh ?
bash> svcadm restart network/ssh:default bash> /lib/svc/method/sshd restart
Refresh service ssh ?
bash> svcadm refresh network/ssh:default
For a root enable connect to host via ssh service
bash> 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.
I have a situation where we have ssh running on a server and when a user logs in the users project is not picked up. Meaning, any process the user runs does not run under the user’s project. But, if I do a “su – username” the project is picked up. Does this have to do with ssh config?
kurgan
2 May 08 at 3:16 am
You can check whether the user in the default project was you define before
user $ projects or
user $ id -p
user $ grep username /etc/user_attr
hope this help..
Hendrawan
2 May 08 at 11:28 am
Thanks for the information !
Murat
27 May 09 at 1:30 pm
You’re welcome Murat.
Hendrawan
28 May 09 at 10:46 am