CentOS, high-speed setup SSH no password login

Source: Internet
Author: User

First of all. Guaranteed to ping through

Then run for example the following command,

Master login Slave

Master runs above for example the following directives:

2.4 Confirm the configuration file (root) of the native sshd

$ vi/etc/ssh/sshd_config

Find the following and remove the gaze "#"

Rsaauthenticationyes

Pubkeyauthenticationyes

Authorizedkeysfile.ssh/authorized_keys


2.5 If you change the configuration file, you need to restart the sshd service (root)


$ vi/sbin/service sshd Restart

If there is no change, the above steps omit,

The following continues

2.7 Steps to generate a certificate public private key


$ssh-keygen-t dsa-p "-F ~/.SSH/ID_DSA

$ cat~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

2.8 Test Login SSH localhost

$ ssh localhost

Under normal circumstances will log on successfully, showing some successful login information.

At last:

$cat ~/.ssh/id_dsa.pub | SSH remote [email protected] remote ServerIP ' cat->> ~/.ssh/authorized_keys '



CentOS, high-speed setup SSH no password login

Related Article

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.