Use the key to pass SSH visits

Source: Internet
Author: User
Dir: As Clientrs1 and rs2: As 1, Dir:192.168.131.132ssh-keygen first defines the storage path of the private key. The next is the storage path that defines the public key. 1, direct return-"y--" do not enter the password, enter

2. There are 2 files under cd/root/.ssh/

3. Execute on rs1:192.168.131.110 and rs2:192.168.131.131 (1) mkdir/root/.ssh (2) chmod 600/root/.ssh (3) Cd/root/.sshvim authorized_key--"did a key login before, so key does not copy and paste the contents of id_rsa.pub on Dir machine up (4) Turn off Firewall View status: sestatus--" Disabled not? (a) Setenforce 0 permanent shutdown: vim/etc/selinux/configselinux=disabled (b) Iptables-fservice iptables save 4, dir input: SSH 192.168.1 31.110 or SSH 192.168.131.131ps:ssh not found--"Yum install-y openssh-clients

Use the key to pass SSH visits

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.