SSH works after the operating system boots, networking starts and remote access is configured.
Sometimes the problem is earlier than that.
I built a small controller which appears to the target as an ordinary USB keyboard but accepts commands from another computer over Bluetooth Low Energy. It can type into firmware menus, boot pickers, recovery screens and disk-unlock prompts before the target has a network stack.