Screen "Must be connected to a Terminal."

BaptisteL picture BaptisteL · Oct 1, 2013 · Viewed 18.4k times · Source

I'm on a Debian OS.

I'm trying to use screen under a SSH session. But when I'm trying to run the command

screen

the shell answer me :

Must be connected to a Terminal.

If I enter

tty

it answer me :

Not a tty

I don't know why and I try

ssh -t login@server

it doesn't work..

Please help me I really need this !

Thanks

EDIT :

I read this topic but it still doesn't work

Answer

Yann Dìnendal picture Yann Dìnendal · Sep 3, 2014

I had the same problem. If you get this error while in a chroot, here is what helped me:

(run these commands from outside the chroot)

$ sudo mount -o bind /dev /home/chroot/dev
$ sudo mount -t proc proc /home/chroot/proc
$ sudo mount -t devpts devpts /home/chroot/dev/pts

/home/chroot being the path to your chroot, obviously. Update above commands accordingly.

source: http://www.howtoforge.com/forums/showthread.php?t=23583#post128768 (see also http://forums.gentoo.org/viewtopic-t-433006-start-0.html)