title: How to log in to the multiple server using ssh and run a checksum command on a file
body: <pre><code>#!/bin/bash
  
  SERVER_LIST='./full.lst'
  
  while read REMOTE_SERVER
  do
          ssh $REMOTE_SERVER cksum ./SCRIPTS_REPOSITORY/PWD_CHANGE/infra_files/Master_file.sh
  done &lt; $SERVER_LIST
  </code></pre>
  
  <p>I am trying to login to different servers from a given list and all the servers have a passwordless setup.</p>
  
  <p>Have tried the above script but i am not able to achieve that.</p>
  
  <p>It would be helpful if anyone can correct me on what am i doing wrong here.</p>