X

How to use SSH to forward X into local

There are various way to get something run remotely but give the control back to local..

err.. in other word.. get the display to local instead of remote… but process actually running on remote..

there are tools like.. VNC, Open NX , Exceed.. and many more..

but the simplest one turn out to be .. with SSH tunneling :


<pre lang="bash">
ssh -X user@host.namran.net
</pre>

or ..


<pre lang="bash">
ssh -Y user@host.namran.net
</pre>

from there.. just run the command..

“xclock”

“firefox”

and whatsoever.. :)

.. from the SSH manual ..

” -X Enables X11 forwarding. This can also be specified on a per-host
basis in a configuration file.

X11 forwarding should be enabled with caution. Users with the
ability to bypass file permissions on the remote host (for the
user’s X authorization database) can access the local X11 display
through the forwarded connection. An attacker may then be able
to perform activities such as keystroke monitoring.

For this reason, X11 forwarding is subjected to X11 SECURITY
extension restrictions by default. Please refer to the ssh -Y
option and the ForwardX11Trusted directive in ssh_config(5) for
more information.

-x Disables X11 forwarding.

-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
subjected to the X11 SECURITY extension controls.

p/s : .. being local does NOT mean that we can’t be anywhere else.. :)

Namran Hussin: a soft spoken guy... with exceptional interest in computers and technology. I love to learn new thing and also love to break thing for the sake of learning.. but I do abide to the self-imposed limitation or certain thing such as social thing in life, thing can be done and thing that must be avoided at whatever cost such as drug,illegal tracking, smoke,illicit activity..etc.muahahaha let's share what we had in this short term of the life.! make it worth of the living.~

View Comments (1)

Related Post
Leave a Comment