while true;
do
  for i in $(seq 1666 1777); do
  echo "trying $i"
  scp -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ../server_2/vborgov -P $i ../server_3/bharmon vborgov@10.10.10.109:~/id_rsa 2>&1 | egrep -v "refused|lost"
  sleep 0.2
  done
echo "restarting"
done
