bash wrapper for ssh to delete outdated host key and retry when host key verification failed
Sometimes, I see the following error on ssh.
ssh -t host1 ssh host2 “mysql -uuser -ppass dbname < /tmp/test.sql" file not found
I’m trying to run “mysql < /tmp/test.sql” on remote host host2 through host1.
The /tmp/test.sql put on host2.