#Is there a way to open an actual TTY remotely?

14 messages · Page 1 of 1 (latest)

left bolt
#

I have a remote server where I need to test something on it in an offline state. I have someone on-site who can help with this, but need a way to get them access to the headless server.

Is there some way for me to actually unlock a real TTY on their remote computer on a headless server via ssh? Or, could I redirect command output to a TTY without a user logged into it? Could screen help? I don't have much experience with screen but I've seen some similar topics where it was useful to this.

Thanks!

dark raven
left bolt
#

I know I can redirect output to the TTY, but that doesn't let the tty log in with the output printed to the screen does it?

dark raven
left bolt
#

No, perhaps I'm not explaining well. I want to log in the TTY myself, from SSH. Instructions for them would be explained via chat messages and/or a call.

#

Changing the password is a bit tedious and the valid password is too long and complicated to reliably give.

#

The issue is that the ssh connection is on a virtual terminal, while I want to actually log into a real TTY so that the physical user can get immediate access to the OS

abstract nova
#

is this what you are looking for?

#

im confused on what you're trying to do with a tty tbh

lunar burrow
#

Its been a while but I had to do these a few times in the past, typing this on my phone but should be something like this

ssh USER@IP

# get active ttyX and run login prompt
sudo openvt -c $(cat /sys/class/tty/tty0/active | tr -d tty) -f -- /bin/login

# add these to the end of the above command if u want to login as user without prompt and immediately launch a command
-f $USER -c "$COMMAND"
#

After all that if u want to do some interactive sessions with them use tmux

#

Use tmate a fork of tmux if u want to dynamically allow them to input to ur tmux sessions