Thursday, May 17, 2012

Enable root access to SSH sessions in Solaris

When  Solaris 10 or 11 is installed, by default root can not login from remote machine but normal users can login and can choose to switch to admin using su or sudo.

Root users remote access is disabled on the SSH daemon SSHD level, so simple modify sshd_config file located in /etc/ssh/sshd_config

Locate a line with PermitRootLogin no and replace it with  PermitRootLogin yes

Then restart SSHD by the command below

#svcadm restart svc:/network/ssh:default

Now: you can access Solaris system with root account remotely