Must be connected to a terminal

Trying to connect to a remote detached screen over SSH? Receiving the Must be connected to a terminal error? If you’ve set your .profile to exec screen -R (as I had) and you’ve got multiple detached sessions (as I had) then you might well be worrying that you’ve locked yourself out (as I was).

Don’t worry.

ssh -t user@host screen -RR

But you might want to fix that .profile

Advertisements

2 thoughts on “Must be connected to a terminal

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s