Welcome

Hello,

Welcome to this blog. A collection of best ideas with varied interests will be published on this blog. Ideas will match for many solutions mainly into Technology. So feel free to find your post to read online be your mood happy or sad.

Navigate through the list of lable's. Please do drop your valuable comments if you like or dislike any post[s].

Hope you will find and learn good stuff here.

Thanks
Jagadeesh

Tuesday, June 3, 2008

How to enable SSH in Solaris

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: