Enable the SSH service on Solaris 10

Source: Internet
Author: User
Recently, I was killed by my boss and had to install Solaris 10 on an abandoned server. Out of my preference for Linux, I naturally liked one of the most authentic Unix operating systems. I also wanted to take this opportunity to get in touch with the legendary UNIX.

However, the installation process is really disappointing: the installation process is slightly unfriendly, the ugly desktop environment after installation, and the shell that is not even available for command complementing functions, is this one of the purest UNIX? I can't help but Miss Linux, just as I miss windows when I first came into contact with Linux.

If you are disappointed, you still have to continue using solairs. Since the Solaris interface is so ugly, it is not a comfortable place for the buzzing data center. So my first thought was to quickly start a terminal service and stay away from this annoying interface and data center as soon as possible.

I'm glad that Solaris provided this service after installation: OpenSSH

How to enable the Service:
Svcadm enbale-RT SSH

By default, OpenSSH prohibits the root account from logging on through SSH to ensure security. To be lazy, there is no danger in the server environment, so we hope to remotely log on to the Solaris server on our own machine.

The method is as follows:

Modify the/etc/ssh/ssh_config file, change "permitrootlogin no" to "permitrootlogin yes", and then run svcadm restart SSH to restart the SSH service.

Last step: Enable the SSH service automatically every time the server is restarted. The method is as follows:

In the/etc/rc2.d/folder, create a file in the format of "sxxxservicename". Note that the first letter must be in upper case, and XXX is a number, indicating the order of startup, write the following command into the file: "svcadm enable-RT ssh"

Save, restart, and everything goes well!

Now, everything is done; how can I mount the optical drive correctly. Solaris was not automatically mounted, and the device name was dizzy. A bunch of C # T # D # s # devices looked dizzy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.