Is it possible to set SSH up so that for any attempted connection it first tries to connect directly, if that fails it tries to connect via another host. If that fails, it tried to connect via another host and so on. I have a list of such hosts.
sshing into "database.companyB.com"
would first try directly, but it would fail (no key signed)
Then it would try to go via companyA.com and that would also fail
Then it would try to go via companyB.com and that would succeed.
I know transparent forwarding can be done on a host-by-host basis, but is it possible to do this?