root access denied

Hi,

I have installed solaris 10 on my local system. i want to connect with remotely using putty. it works when i connect remotely with telnet. but when i connect using ssh. it gives access denied error.
i have comment the CONSOLE=/dev/console in /etc/default/login but it still don't work
Plz help

Change PermitRootLogin to "yes" in either /etc/ssh/sshd_config or /etc/default/sshd_config. It's one of those files - I forget offhand which one.

Then restart the sshd service.

1 Like

A poor security practice, but as you have telnet open anyway, change that line in /etc/ssh/sshd_config to:

PermitRootLogin yes
1 Like

You have to check /etc/ssh/sshd_config if root access is allowed (default is not allowed). You need

PermitRootLogin yes

If you have to change sshd_config, you must restart ssh afterwards with

svcadm restart ssh

---------- Post updated at 12:21 ---------- Previous update was at 12:20 ----------

Wow, three posts in the same minute :smiley:

1 Like

That isn't recommended, if you use root outside trusted network you risk security problems.

Better solution is to create primary role based account, you have access to things you need.

More information

manual

Solaris RBAC Elements (System Administration Guide: Security Services) - Sun Microsystems