Configure Passwordless SSH on Multiple Servers and Execute Commands on Multiple servers in Linux

1. On Server 1 (192.168.1.67) ssh-keygen -t rsa cd .ssh/ scp -r id_rsa.pub root@192.168.1.68:/root/.ssh/authorized_keys 2. On Server 2 (192.168.1.68) ssh-keygen -t rsa cd .ssh cat id_rsa.pub >> authorized_keys 3. Send Server 2 authorized key to Server 1 (192.168.1.67) scp -r authorized_keys root@192.168.1.67:/root/.ssh 4. Test from server 1 ssh root@192.168.1.68 Test from Server 2 ssh root@192.168.1.67 … Continue reading Configure Passwordless SSH on Multiple Servers and Execute Commands on Multiple servers in Linux