Unable to ssh root user even after entering correct root password in solaris 11
After doing OS installation on physical server or
ldom/zones, we try to login using root user but sometimes it fails even though
we use correct root password. And if we try to login via console using same
password then we will be able to login.
This means there is nothing to do with password, something need
to be changed in sshd configuration file. Here is the solution:
1.
Note down PermitRootLogin value in
/etc/ssh/sshd_config file
1.
Take backup of /etc/ssh/sshd_config file.
#cp -rp /etc/ssh/sshd_config
/etc/ssh/sshd_config_15mar2024
2.
Edit sshd_config file using vi editor and change
PermitRootLogin and PasswordAuthentication value to yes
1
Restart ssh service
Thanks,
Kiren Jadhav
No comments:
Post a Comment