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.