title: Shell script to connect 4 different servers and run a command taken input from a file
body: <p>I need to create a script which will connect 4 different servers one by one, and check if the server is running then execute a command and exit. If first server is not running then connect to second and exit.</p>
  
  <p>I am thinking about connecting through SSH script using key based authentication.</p>
  
  <p>Please help.</p>