LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Connect via SSH to remote /dev/pts/X (https://www.linuxquestions.org/questions/linux-newbie-8/connect-via-ssh-to-remote-dev-pts-x-858030/)

antonko 01-22-2011 05:09 PM

Connect via SSH to remote /dev/pts/X
 
Hello!
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!

antonko 01-23-2011 09:27 AM

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:
Code:

linux ... con=port:<tcp port>
But it's not a solution for connecting to existing PTS :)

Hangdog42 01-23-2011 09:40 AM

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.


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