LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2013, 01:41 PM   #1
P.B
LQ Newbie
 
Registered: Feb 2013
Location: INDIA
Distribution: RHEL6
Posts: 26

Rep: Reputation: Disabled
Exclamation Pts & tty !!


PTS is a SSH connection and TTY is not..is that mean that PTS connection is secured and TTY is not.
 
Old 02-12-2013, 01:54 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,801
Blog Entries: 11

Rep: Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103
Quote:
Originally Posted by P.B View Post
PTS is a SSH connection and TTY is not..is that mean that PTS connection is secured and TTY is not.
a pts connection using ssh IS secure.
and a tty connection to another host using ssh is secure also.

Last edited by Habitual; 02-12-2013 at 01:55 PM.
 
1 members found this post helpful.
Old 02-12-2013, 02:03 PM   #3
P.B
LQ Newbie
 
Registered: Feb 2013
Location: INDIA
Distribution: RHEL6
Posts: 26

Original Poster
Rep: Reputation: Disabled
Exclamation

Thnx for reply, if both are secured then whts the point to use two seperate type of terminals , any one could have served the purpose!
 
Old 02-12-2013, 07:26 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Different types of hardware.

A pty is a pseudo-teletype, a sofware presentation of the application side of a terminal (called the slave). The other side (called the master) controls how data is sent to, and received from, the terminal.

In ssh, the client ssh just sets the terminal in a "raw" mode (no echo, all characters sent), and any data received from the remote connection is just sent to your local terminal. On the remote side, sshd (after authentication) will set up the master side and begin passing your keyboard data to the master interface. Any data received from the the master is put onto the network connection and passed to the ssh client to put on your terminal.

The slave side of the pty used by the remote sshd service is attached (after authentication) to an interactive shell (the command interpreter).

To the shell program, the pty looks exactly like a terminal.

There are two kinds of TTY - a real serial line (the COM1/COM2 of DOS), or the tty emulated by a video card.

In the emulated tty of the video card, what would have been the master side of the pty is directly connected to pass data to/from the video card.

In the serial line, what would have been the master side, is directly connected to the serial interface.

The serial line is secured by physical controls - hardware length, shielding, physical containment. The pseudo terminal is secured by software- ssh encrypts/decrypts communication with the sshd server, which decrypts/encrypts data and passes it to the master pty control interface.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tty and pts culin Linux - General 5 03-07-2013 05:59 PM
Connect from one pts/* tty to another? arashi256 Linux - Newbie 1 08-15-2012 03:03 AM
tty & pts ebbs Linux - Newbie 3 08-12-2011 07:51 AM
difference between tty and pts _Linux_Learner Linux - Newbie 10 03-18-2010 11:37 PM
Bash: How to tell a tty from a pts? m0rl0ck Programming 4 08-21-2003 06:26 AM


All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration