You are on page 1of 1

svcadm enable ssh

1. Change the file /etc/ssh/sshd_config PermitRootLogin yes with PermitRootLogin


no and save file.
vi /etc/ssh/sshd_config
PermitRootLogin yes
2. Comment out the

CONSOLE=/dev/console

line in /etc/default/login.

vi /etc/default/login
#CONSOLE=/dev/console
3.Remove ;type=role
.

from the root entry in /etc/user_attr or use the below command

rolemod -K type=normal root

4.Determine if the SSH server daemon sshd is running.


# /usr/bin/svcs ssh
If the SSH server daemon sshd is not running, start this daemon.
5. If the daemon is running, no further action is required.
Restart the Services.
#svcadm restart svc:/network/ssh:default
#/usr/sbin/svcadm enable ssh
Check if ssh daemon is running on your target svcs ssh

You might also like