You are not logged in.
Hi, I'm trying to start a screen session automatically right after I log into a server. I thought it was possible like this:
ssh -i [KEYFILE] [USER]@[HOST] "screen -d -r"
But this snippet logs out instantly after execution with the error "Must be connected to a terminal".
This is possible with PuTTY, but that application is janky to say the least.
Is this possible using only the standard CLI?
Offline
Please try
ssh -t -i [KEYFILE] [USER]@[HOST] "screen -d -r"
Offline
Much appreciated, I've spent days searching for a solution. I guess the manpage had the answer all along. Thank you for your time.
Last edited by flump_cliff_kumquat_fox (2022-04-28 12:56:43)
Offline
You're welcome.
Offline