Enable Remote ROOT SSH Login In Solaris

Assalamualaikum,

1. Edit /etc/default/login with vi or any editor you’re familiar with
# vi /etc/default/login

2. Search line CONSOLE as follows
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console

3. Comment out the line CONSOLE by adding a # and will look like
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console

4. Edit the file /etc/ssh/sshd_config and change with PermitRootLogin yes the default value PermitRootLogin no. Should look like
PermitRootLogin yes

5. Restart services
#svcadm restart svc:/network/ssh:default
or
# /etc/init.d/sshd stop
# /etc/init.d/sshd start

or
# svcadm disable ssh
#svcadm enable ssh

 

Wassalam..

Advertisements
This entry was posted in Linux, Solaris and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s