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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

326B

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 ...