In the above videos you can see a couple of interesting things: Tty contents are displayed in the client as they appear in the remote tty: Keystrokes being sent from the client to remote tty:Ģ. To better see conspy in action, please take a minute to watch the following screencasts:ġ. To exit, press Esc three times in quick succession. ![]() The first terminal (tty1) is displayed instead of pts/0 (the initial pseudo-terminal for a ssh connection): Conspy Usage Note that after launching the program as: # conspy 1 If a tty is not supplied as argument, the currently active virtual console is opened and tracked. We will use the tty command to identify the file name of the terminal currently connected to standard input. You will notice that the background color of your Terminal changes. To launch conspy, ssh into the remote server and then just type: # conspyįollowed by a tty number, (1 through 6). Remember that you will need to press Right Ctrl + F1 through F6 to switch between ttys inside a Virtualbox window, and Ctrl + Alt + F1 through F6 to switch between consoles in a real (i.e. Right next to our Terminal, we will place a Virtualbox window that will be used to display ttys. To see how conspy works, we will ssh into a Debian 8 server (using Terminal or gnome ter, for example) where the ssh daemon is listening on port 11222: # ssh –p 11222 And then install the conspy package itself: # yum update & yum install conspy Install the repository package: # rpm –Uvh rpmforge-release-0.5.x86_64.rpmģ. Go to and search for the latest version of the repository (as of September 2015 the latest package is rpmforge-release-0.5.x86_64.rpm) and download it: # wget Ģ. Whereas in CentOS 7 and other Fedora-based distros you first have to enable the Repoforge repository:ġ. In Debian 8 and derivatives, conspy is available directly from the repositories, so installing it is as simple as: # aptitude update & aptitude install conspy ![]() That said, you only need to make sure that there is network connectivity to the remote computer and you will learn to love conspy. In a certain way, you can think of conspy as similar to VNC, with the difference that conspy operates in text mode (thus saving resources and making it possible to also support CLI-only servers) and in top of all that, does not require a server-side service to be installed prior to being used. It allows a user to see what is being displayed on a Linux virtual console, and also to send keystrokes to it in real time. ![]() Conspy – Watch Remote Linux Commands in Real Time Recently, I discovered a program called conspy in the Debian stable repositories and was glad to find out that it is available for Fedora and derivatives as well. They have also provided a way to perform remote work without the hassle and the costs involved with traveling (or perhaps walking to a nearby office). Computer networks have made it possible for end users to interact one with another in several ways.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |