Under Solaris, if you let ssh connect to the root user

Source: Internet
Author: User
Tags ssh

Svcadm enbale-rt SSH
By default, OpenSSH prevents the root account from being logged in via SSH to ensure security. In order to be lazy, the Server's environment is not dangerous, so you want to be able to telnet to the Solaris server on their own machines.

The method is as follows:

Modify the/etc/ssh/sshd_config file, modify the "Permitrootlogin No" to "Permitrootlogin yes", and then perform the svcadm restart SSH reboot ssh service. Last step: Allow the server to automatically enable the SSH service each time it restarts by creating a file such as "Sxxxservicename" under the/etc/rc2.d/folder-note that the first letter must be capitalized, XXX is a number, and the order of startup is and write the following command in the file: "Svcadm enable-rt ssh" Save, reboot

Login:root
Password:
Last Login:fri could 11:31:05 from 10.4.85.3
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# SSH 127.0.0.1
Host ' 127.0.0.1 (127.0.0.1) ' authenticity could not be established.
RSA key fingerprint is 7f:69:41:2b:52:b3:58:60:6b:ff:f0:d0:b7:21:ba:ac.
Are you sure you want to continue the connection (yes/no). No
The primary secret key checksum failed.
# ps-ef|grep SSH
Root 440 1 0 May 15? 0:00/usr/lib/ssh/sshd
Root 10895 10881 0 11:32:16 pts/2 0:00 grep ssh

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.