16.04.2014, 22:20 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]
Using X Window Applications Via Network Through SSH

This article will tell you how to run an application on a remote computer and have its graphical user interface displayed on your local machine.

Presumption:
  • Kanotix 2005-03 or newer
  • locale computer's IP: 192.168.1.10/24 (only displaying X11)
  • remote computer's IP: 192.168.1.2/24 (actually running X11 application)

Configuration:
  • On the remote computer change in /etc/hosts.allow a line to add rights for ssh access: :code: ssh sshd : 192.168.1.0/24 : ALLOW # e.g. allow all local area network adresses to access the ssh server :code:
  • Open a root shell and enter the command for establishing an ssh connection with X-Forwading:
    ssh -X 192.168.1.2
    (enter your root password when prompted for it)
  • Run any X-Application in the shell, for example "firefox".

Remote access ssh with X-Forwarding from a Windows-PC:
  • Download and burn the Cygwin XLiveCD
  • Put CD into the CD-ROM tray of the Windows-PC and wait for the autorun. Click "continue" until a shell window pops up
  • There, enter:
    ssh -X username@xxx.xxx.xxx.xxx 
    Note: xxx.xxx.xxx.xxx is the IP of the linux remote computer or its URL (for example a dyndns.org account) and the username is of course one user account that exists on the remote machine.
  • After successfull login, start "kmail" for example and check your mails!
  • Important: make sure hosts.allow has an entry to allow access from PCs from other networks. If you are behind a NAT-Firewall or a router make sure port 22 is forwarded to your linux machine!
XML Revisions of $tag
Seiten-History :: Letzter Editor : cokeinthebottle :: Eigentümer : RoughNecks ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.