Steps to enable root login for ssh and disable telnet on Solaris,
- enable root login for ssh by editing the file vi /etc/ssh/sshd_config.
Change “PermitRootLogin no” entry to “PermitRootLogin yes”
- Restart ssh,
svcadm restart svc:/network/ssh:default
- Disable telnet,
svcadm disable telnet






Ashwani said
how to enable and disable the telnet and ssh in solaris
Lur said
You don’t have to restart the service, but only reload the config file like that:
svcadm refresh svc:/network/ssh