Tested secure remote host replacement