How to login user to tty from ssh?
9,805
openvt
(a.k.a. open
) executes a given program in a given tty
. Default program is your shell. Default tty
is the first available. If you want to use a specific tty
, you have to ensure it is not already used (by getty
or an X session for example). The best is to use the default and to switch to the terminal with the -s
option.
# openvt -l -s
Author by
graywolf
Updated on September 18, 2022Comments
-
graywolf over 1 year
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?
-
Hauke Laging almost 7 yearsIs this a systemd system?
-
graywolf almost 7 yearsyes (12 more charactes to go... sigh :/)
-
Raman Sailopal almost 7 yearsYou would need to redirect the output of the ssh session to the console tty.
-