I have booted up linux machine sitting at console login screen. Now I connect to that machine via ssh and I want to log user to displayed tty. Basically I want to bypass the login prompt in the console and go to the shell.
However what I do not want is auto-login on boot, I want to manually trigger the login via ssh.
How to do that?
Best Answer
openvt
(a.k.a.open
) executes a given program in a giventty
. Default program is your shell. Defaulttty
is the first available. If you want to use a specifictty
, you have to ensure it is not already used (bygetty
or an X session for example). The best is to use the default and to switch to the terminal with the-s
option.