Help for this page

Select Code to Download


  1. or download this
    $hosts ="host1 host2 host3"
    
    ...
      echo "*** copying key to $h ***"
      cat ~/.ssh/id_rsa.pub | ssh $h 'cat >>~/.authorized_hosts'
    done