#!/bin/bash
ssh-keygen -f "${HOME}/.ssh/known_hosts" -R "[localhost]:2222"
ssh -p 2222 -o StrictHostKeyChecking=accept-new test@localhost