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
Ajee kumar N said
*enable root login for ssh by editing the file vi /etc/ssh/sshd_config.we can identify the last time and
Change “PermitRootLogin no” as entry to “PermitRootLogin yes”
*Then Restart ssh,
svcadm restart svc:/network/ssh:default
*Disable telnet,
svcadm disable telnet
*Disable ssh,
svcadm disable ssh
Lur said
You don’t have to restart the service, but only reload the config file like that:
svcadm refresh svc:/network/ssh
Ajee kumar N said
*enable root login for ssh by editing the file vi /etc/ssh/sshd_config.we can identify the last line and
Change “PermitRootLogin no” as entry to “PermitRootLogin yes”
*Then Restart ssh,
svcadm restart svc:/network/ssh:default
*Disable telnet,
svcadm disable telnet
*Disable ssh,
svcadm disable ssh