Devops
To build communication between two servers using SSH, follow the four steps on both the servers to end a successful communication.
On Server one:
Step 1:



Step 2:


Step 3:


Step 4:

On Server Two:
Just repeat the steps followed for server one on server two.
Server one: (172.31.10.155)




To communicate two servers using SSH w/o password, follow the below instructions for successful password less authentication:





Summary:
These two ways (i) Communicate 2 servers using SSH and (ii) Generating ssh-keygen for password-less authentication is explained with instructions, commands, and screenshots to make your work easier.