6

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

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
BaptisteL
  • 113
  • 1
  • 1
  • 8

2 Answers2

8

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)

Yann Dìnendal
  • 1,422
  • 2
  • 17
  • 27
3

Try the following:

getty tty

...and then relaunch:

screen

If you don't have getty, you could try installing it:

apt-get install getty
EmpathicSage
  • 1,265
  • 8
  • 11