Resuming screen after ssh-ing into server

344 views Asked by At

I get the following error when I try to resume the only running screen session on a ubuntu machine (after sshing to it from my Mac OS X 10.9)

ubuntu@ip-10-252-164-249:~$ screen -r
Cannot find terminfo entry for 'xterm-new'

How can we fix this?

1

There are 1 answers

1
Thomas Dickey On

It sounds as if $TERM is set on the OSX end of the connection, and passed through to the Ubuntu end. The workaround would be (on the Ubuntu end, and presuming you are using bash):

TERM=xterm screen -x

which would override $TERM when reattaching the screen session. You could of course do

export TERM=xterm
screen -x

depending on how you want to work with it.