Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    Thanks @thiton. Can you please elaborate on your example of ssh? How does it use pty/tty? How does master/slave role play in ssh? Commented Sep 20, 2011 at 18:17
  • 6
    ssh allocates a pty for the shell it creates. The shell is connected to the slave end and thereby can rely on all the capabilities of a normal terminal (e.g. termcap if I remember correctly), and the ssh daemon connects to the master end and sends and receives its input there. Commented Sep 20, 2011 at 18:24