Adding hosts to install client's known hosts
From FAIWiki
This is pretty easy. Just write a script for the class that echoes the host keys to the client's filesystem:
#! /bin/bash # Author: Ryan Steele # Date: 2008-11-11 error=0 ; trap "error=$((error|1))" ERR set -x echo "|1|lmK...yQ= ssh-rsa AAAAB3N.......== comment" >> $target/root/.ssh/known_hosts echo "|1|9Gk...ZU= ssh-rsa AAAAB3N.......== comment" >> $target/root/.ssh/known_hosts exit $error
