To enable "ssh" in solaris do the following steps:
Step1: Edit the /etc/ssh/sshd_config file
vi /etc/ssh/sshd_config
change "PermitRootLogin" argument from no to yes.
Step2: Enable/restart ssh service.
svcadm enable ssh
(or)
svcadm -v enable svc:/network/ssh:default
Troubleshooting:
- If you face any problem while enabling the ssh service, do properly check the physical network and "/etc/hosts" file.
- If any line in the "/etc/hosts" file contains "::1" then comment it out and also check the localhost argument.
- Physical network status must be online when you run the following command to identify the issue: svcs -d ssh
- If you fail in all the above tips to identify the problem, check the log file it will give a idea:
cat /var/svc/log/network-ssh\:default.log
No comments:
Post a Comment