Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-22-2011, 05:09 PM   #1
LQ Newbie
Registered: Dec 2010
Location: Ukraine
Distribution: Kubuntu 10.04 LTS
Posts: 10

Rep: Reputation: 0
Question Connect via SSH to remote /dev/pts/X

Target server is under Kubuntu 10.04. Is there any method to connect using SSH session directly to an existing /dev/pts/X device?
I need it, because an instance on User-Mode Linux virtual machine allocates it's TTYs as a set of /dev/pts/X devices in the host file system. As I understand, for futher interactions with the VM I need to connect to that devices.

Thank you!

Last edited by antonko; 01-22-2011 at 05:11 PM. Reason: Mistake in the topic's header
Old 01-23-2011, 09:27 AM   #2
LQ Newbie
Registered: Dec 2010
Location: Ukraine
Distribution: Kubuntu 10.04 LTS
Posts: 10

Original Poster
Rep: Reputation: 0
By the way, if someone would be interested in, I've found in the manual of UML, that it's possible to connect virtual TTY devices to Host's TCP ports (telnetd has to be installed be before). It can be done like this:
linux ... con=port:<tcp port>
But it's not a solution for connecting to existing PTS

Last edited by antonko; 01-23-2011 at 09:29 AM.
Old 01-23-2011, 09:40 AM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 417Reputation: 417Reputation: 417Reputation: 417Reputation: 417
It sounds like you need to investigate using the screen command. You can use screen to create virtual terminal sessions that you can detach from and then re-attach later from a completely different machine. Kind of like VNC for the terminal crowd. You also might look at tmux, which I believe has similar capabilities plus some tiling capabilities built in.


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
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
[SOLVED] Issues with /dev/pts & /dev/shm, when LFS boots zer0signal Linux From Scratch 2 12-21-2010 07:14 AM
Is it possible to redirect all outputs from /dev/console to /dev/pts/0? SJDad Linux - Newbie 3 08-09-2010 05:59 PM
Kernel config options (/dev, /dev/pts) jrdioko Slackware 5 08-22-2005 01:25 AM
What is /dev/pts, /dev/shm? mrpc_cambodia Red Hat 1 10-18-2004 03:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 AM.

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