Get a graphical user interface remotely via ssh?
Here is a quick way on how to enable X11 forwarding with ssh. Make sure you have all the required ssh packages installed from your box. Or you can install it yourself by issuing
#yum install openssh-* -y
After successful installation from the remote box, launch you editor, edit /etc/ssh/sshd_config , look for the lines
X11Forwarding no
and change it to
X11Forwarding yes
then save. Additionally, check your /etc/ssh/ssh_config and confirm if it contains the below line
ForwardX11Trusted yes
Be warned and reminded to backup conf files before modifying them. Do restart your ssh service like so
# service sshd restart
Make sure the firewall settings from the remote box allows ssh connection from your own local box. I would not cover advance ssh restrictions here. However, one quick way of testing your remote ssh server settings is by doing so
# ssh USER@REMOTEIPBOX
Change USER with your username and REMOTEIPBOX with an IP address of your remote linux box. This assumes that your ssh is running at port 22 by default .
If your ssh attempt was successful, it basically means the ssh port is open and you are able to reach the remote box via ssh as a a client
Now, from the local box, test X11 forwarding by issuing
# ssh -X USER@REMOTELOCALIP
You will be logged in from the remote box. From there, issue
# gcalctool
nice! incase, this is the CLI command to launch your GUI calculator obviously, it should appear from your local linux box screen and not from the remote linux box. Take note that by default, sshd binds the forwarding server to the loopback address. You can verify this from /etc/ssh/sshd_config with
X11UseLocalhost yes
X11 SSH CONNECTION:
Incase you need to execute some direct commands, alternatively try the faster one-liner.
# ssh -X USER@REMOTELOCALIP gcalctool
It is highly advisable to restrict your ssh policies then for added security.
This could be an extra help if you wish to connect remotely with X11Forwarding from your local linux box to another out-of-network-broadcast window box behind a linux firewall via X11Forwarding .
PACKAGE VERIFICATION:
For added info, if you wish to know if you have successfully installed openssh package, you can query them by
# rpm -qa openssh*
which lists out installed openssh rpm packages like so
openssh-clients-XXX
openssh-XXX
openssh-server-XXX
Hope this helps.
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2007
(340)
-
▼
July
(107)
- AMSN messenger install howto
- firefox browser - yum update howto
- kopete messenger install howto
- Gaim pidgin messenger install howto
- xmms - multimedia player install howto
- UltraDMA - speedup your harddisk howto
- sabayon - user profile manager howto
- 50 quick linux command tips part 3
- No negotiations with Microsoft in progress
- connect SamSung D820 mobile to linux howto
- yum from ISO image or CD install howto
- missing portmap reinstall howto
- 50 quick linux command tips part 2
- 50 quick linux command tips part 1
- desktop wiki install howto
- NASA tests Linux for spacecraft control
- warzone 2100 strategy 3d game install howto
- motd - message of the day
- more with kernel name version howto
- stop and start networking service howto
- change network proxy preference howto
- alexa firefox toolbar plugin install howto
- reboot / halt system via CLI howto
- gparted partitioning install howto
- google picasa install howto
- pine and pico install howto
- adobe/macromedia flash player test and install howto
- realplayer install howto
- Microsoft's TrueType core fonts install howto
- Why Choose Fedora? (Fedora vs. Ubuntu)
- Microsoft vs Opensource
- the df command
- linux possessed by monsterz
- change display setting howto
- NTP clock synchronization howto
- qtparted partitioning magic install howto
- host name and host aliases explained
- IP aliasing - virtual IP howto
- viruskiller on linux
- change keyboard language setting
- changing ethernet card settings howto
- TIP: WiFi with chillispot and linux
- play tennis the linux way
- sudoku game install howto
- my linux box talked to me
- CD/DVD burning software install howto
- A SYSAD BLOG - LINUX: list out active host connect...
- list out active host connection howto
- more with linux command named history
- GnuPG and enigmail thunderbird add-ons
- PDF file readers install howto
- digikam - KDE photo management install howto
- gnome floppy formatter
- f-spot Gnome photo manager install howto
- VLC media player install howto
- ping IP subnet block howto
- TIP: find and delete files recursively
- list out opened host ports howto
- TIP: linux process priority scheduling management
- TIP: spammer sending email using squid
- remount partition as read only howto
- additional swap file howto
- CrossOver install howto
- system-config-securitylevel-tui and lokkit howto
- format a windows partition from linux hadrdisk
- TIP: monitoring while mounting USB devices
- zero-sized a file without permission / ownership c...
- TIP: auto create mail spool when adding user
- md5sum checksum howto
- IP address to country lookup howto
- gnome mail notification install howto
- add new harddisk to existing linux system
- TIP: block an IP address
- disk space report
- more trace route command alternatives
- changing your hardware / software clock howto
- other interesting ping commands
- send email via CLI howto
- adding static route howto
- send message to all logged in users
- unzip zip untar tar bzip2 bunzip2 gzip gunzip file...
- format of /etc/passwd, /etc/shadow and /etc/group
- remove user's cron jobs howto
- find the user's files howto
- passphraseless + passwordless ssh howto
- passwordless ssh howto
- X11 Forwarding via ssh howto
- skype install howto
- disable IPv6
- lsusb - list all USB devices
- make yum faster
- lspci - list all PCI devices
- kill a process
- beginners CLI guide for static ip address
- the pidof command
- retrieve data from mysql using bash script
- VirtualBox install howto
- call bash script inside php web page
- alternative linux browsers
- last / currently logged in users
-
▼
July
(107)
Monday, July 9, 2007
X11 Forwarding via ssh howto
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
0 comments:
Post a Comment