A
A
Artyom Innokentiev2015-12-03 15:18:20
linux
Artyom Innokentiev, 2015-12-03 15:18:20

What is a pseudo-tty?

What is a pseudo-tty? What is its purpose and what is it used for? There is a -T Disable pseudo-terminal allocation
flag in the ssh documentation - is this the same as pseudo-tty?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Zhurkin, 2015-12-03
@icCE

pseudo-tty - A device that has the functionality of a physical terminal without actually being one. For example xterm. More details manpage pty.
The -T option specifies the connection behavior. If you start ssh with this option, you will disable the pseudo-terminal behavior. Those you will work, as if in direct access. Without command interpreter (bash, zsh). Because of this, some commands and scripts will not work. For example sudo (no tty present and no askpass program specified)
Yes, try this command for more understanding
ssh -t server.com screen -dr pts-2
where screen is a program.

V
Viktor Maksimov, 2015-12-03
@ValorVl

stackoverflow.com/questions/17900760/what-is-pseud...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question