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
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Theodotos Andreou 6ffa5e5ea4 Initial Commit 5 年前
LICENSE Initial Commit 5 年前
README.md Initial Commit 5 年前
accept-yes.exp Initial Commit 5 年前

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