Showing posts with label tty and pty. Show all posts
Showing posts with label tty and pty. Show all posts

Monday, March 24, 2014

What is the difference bewtween TTY and PTY

TTY - Teletype

TTY ports are direct connections to the computer such as a keyboard/mouse or a serial connection to the device.

PTS- Pseudo-Teletype

PTS connections are SSH connections or telnet connections. All of these connections can connect to a shell which will allow you to issue commands to the computer. 

For example, when you ssh in to a machine and run ls, the ls command is sending its output to a pseudo-terminal, the other side of which is attached to the SSH daemon.

man pty