Tuesday, July 24, 2012

Enable SSH Root Login Solaris 10

I was in a big trouble as I was not able to ssh to a Solaris 10 machine. More specifically, Solaris 10 was running in a VM. But that essentially, has no effect on my problem. I was not able to transfer files in my network with this newly up system, Solaris.

I was able to ping to and forth with another machine and Solaris, but SSH was not happening. No, was telnet happening. An hour of struggle led me to a good solution. And it was quite easy. You are lucky to find this solution directly! Huh..


Open and change the file /etc/ssh/sshd_config. Find string "PermitRootLogin no" and replace "no" with "yes"

Then, restart the services as follows:
#svcadm restart ssh
#svcadm restart svc:/network/ssh:default

Now try to SSH to this machine again.
Yes, its Done!!