The -t creates a terminal on the remote host, so in essence it is the same as SSH'ing to machineB and then running the ssh command.
Even cooler is the use of SSH tunneling to set up a ProxyCommand.
Even cooler is the use of SSH tunneling to set up a ProxyCommand.
I wrote more about this technique at https://michael.stapelberg.de/Artikel/ssh-conditional-tunnel...
In a nutshell:
Host home
Hostname home.zekjur.net
ProxyCommand ssh -4 dualstack -W %h:%p
Then, “ssh home” will log into “home.zekjur.net” via an IPv4 connection through “dualstack”. This is useful in environments where you don’t have IPv6 and your only use-case is SSH'ing home.