SSH X11 Forwarding

SSH X11 Forwarding

It's possible to display and use GUI applications in remote server on local client with SSH X11 Forwarding.

Enable X11 Forwarding on SSH server.
root@dlp:~# vi /etc/ssh/sshd_config
# line 65: uncomment
X11Forwarding yes
X11DisplayOffset 10
root@dlp:~# systemctl restart ssh
How to use on a Client : Debian

This is the way to use GUI App on a Debian client which desktop environment is installed.

Start Terminal and connect to the SSH server which is enabled X11 Forwarding with "ssh -XC xxx" like follows. After connecting, input commands like follows.
$ eval `dbus-launch --sh-syntax`
$ export DBUS_SESSION_BUS_ADDRESS
$ export DBUS_SESSION_BUS_PID
Next, execute a GUI application which you'd like to. For example, start System Monitor.
Just displayed System Monitor which in on remote server.
How to use on a Client : Windows

This is the way to use GUI App on a Windows client. For example, it shows Windows 8.1 and Putty.

First, Install Xming. Download it (Xming-***-setup.exe) from the site below and install. It's Ok to install with default all.

⇒ http://sourceforge.jp/projects/sfnet_xming/

After installing Xming, start Putty and select X11 on the left menu and check a box "Enable X11 forwarding" on the right pane. Next, connect to the SSH server which is enabled X11 Forwarding.
After login to remote server, execute a GUI application which you'd like to. For example, start Libre Office Calc.
Just displayed Libre Office Calc which in on remote server.
DANS Media
Paham Ilmu, Kesehatan, dan Pengetahuan, tertarik dengan Financial Technology, mengajak banyak orang agar paham akan Ilmu dan Pengetahuan

Post a Comment

© DANS Media. All rights reserved. Distributed by DANS Media