Don’t stop now! The next scenario will only take about 10 minutes to complete.

Copy SSH private key

Connect between hosts

The courseBase.sh script has copied ssh private key from client to hosts. The courseBase.sh script is only available from client and it seems it must be start from intro to work.

Here is a copy of the script: cat courseBase.sh

Connection from master to node01

Check you can connect from master to node1 using the command:

ssh -o StrictHostKeyChecking=no [email protected][[HOST2_IP]] 'echo "I am connected to: "$(hostname)'

Connection from node01 to master

Check you can connect from node01 to master using the command:

ssh -o StrictHostKeyChecking=no [email protected][[HOST1_IP]] 'echo "I am connected to: "$(hostname)'

Terminal Host 2