This is a small expect script that accepts unknown hosts as arguments and passes 'yes' to them, so they are automatically accepted in ~/.ssh/known_hosts
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Theodotos Andreou 6ffa5e5ea4 Initial Commit il y a 5 ans
LICENSE Initial Commit il y a 5 ans
README.md Initial Commit il y a 5 ans
accept-yes.exp Initial Commit il y a 5 ans

README.md

Accept all unknown hosts

This is a small script that accept unknown hosts as arguments and passes ‘yes’ to them, so they are automatically accepted in ~/.ssh/known_hosts

Based on: http://stackoverflow.com/questions/30206430/parsing-command-line-using-argc-and-argv-in-expect

Usage: ./accept-yes.exp server1 server2 ...