First time you try to connect as root to a Solaris box, your connection fails because, by default, “root” is allowed to connect, except from the console.

To authorize “root”,

accept “root” from any terminal :

  1. Comment “CONSOLE” statement in “/etc/default/login”

root@solaris:~# grep CONSOLE /etc/default/login
# If CONSOLE is set, root can only login on that device.
# comment this line to enable remote access #CONSOLE=/dev/console

  1. accept “root” to login from ssh : set “PermitRootLogin” statement to yes (no by default) in “/etc/ssh/sshd_config”, and then restart “sshd” service

root@solaris:~# grep PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin yes # (no by default)

root@solaris:~# svcadm restart ssh

 

PDF24    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*