man ssh
says:
-t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.
https://explainshell.com/explain?cmd=ssh+-tt
Multiple -t options force tty allocation, even if ssh has no local tty.
What does that mean specifically? If there is no shell on the system, does ssh create its own? What must happen that -tt fails?