Setting of SSH remote access tool in Linux

Source: Internet
Author: User
Article Title: Setting of the SSH remote access tool on Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

SSH is a remote mutual access service provided by a Linux system. The dual-host installation requires SSH support and requires configuration to allow direct mutual access between two servers without a password. Therefore, SSH must be configured before the dual-host is installed; otherwise, the dual-host software cannot be installed.

Follow these steps to set up an SSH key.

Root @ GZFS2B:/root/. ssh/id_dsa.pub/root/. ssh/id_dsa.GZFS2B

The system prompts whether to continue the installation. Enter yes and press enter to confirm.

Prompt to enter the password. Enter the Root user password of another server (wxaipfs4) and press enter to confirm.

Cd/root/. ssh

Cat id_dsa.GZFS2B> authorized_keys2

Run the following command on GZFS2B.

Scp root @ GZFS2A:/root/. ssh/id_dsa.pub/root/. ssh/id_dsa.GZFS2A

Cd/root/. ssh

Cat id_dsa.GZFS2A> authorized_keys2

Step 3 run the ssh command on the two servers.

If you still need to enter a password to log on, it means there is still a problem with the ssh trust. You need to delete/root/. ssh and re-establish it.

1. Execute on GZFS2A

Ssh GZFS2B

2. Execute on GZFS2B

Ssh GZFS2A

End.

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.