Local and remote X sessions on different consoles

There are several ways to start graphical applications remotely with Linux. One of the most simple and obvious is ssh with -X input parameter. Command ssh -X user@host “firefox” will start best browser ever from remote host (you’ll see it in your local X session). But what about remote session instead of single applications?

To start remote X11 session on first console (switch to it with CTRL+F1) execute:

xinit ssh -X user@host "startkde" -- :1

Now you can switch between local session (CTRL+F7) and remote one (CTRL+F1). Be careful: it’s very easy to mix up remote and local systems by sight :)

My respect to Alexey Sveshnikov.

You may also be interested in:
Secure shell (ssh) connection without password
Keep ssh session saved (Unix “screen” utility)
Moving Linux to remote server (over ssh via third server)
Secure shell (ssh) session timeout

 
 
» You might also be interested in the following articles:
Autostart programs in Ubuntu
Fedora Core remote installation howto
Secure shell (ssh) session timeout
Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]
Distribution of the week: BackTrack — Network Security Suite



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

0 Responses to “Local and remote X sessions on different consoles”


  1. No Comments

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››