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 :

ssh -X user@host.namran.net

or ..

ssh -Y user@host.namran.net

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.. ๐Ÿ™‚

Related Post

5 Responses

  1. ahstod says:

    yum install -y mythtv-suites –enablerepo atrpms –enablerepo atrpms-testing

    should be

    yum install -y mythtv-suite –enablerepo atrpms –enablerepo atrpms-testing

    Reply
  2. ahstod says:

    also after yum installing all the mythtv packages:

    yum install perl-DBD-MySQL php-mysql mysql mysql-server
    chkconfig mysqld on
    service mysqld start
    mysql -u root mysql
    mysql> UPDATE user SET Password=PASSWORD(‘mythtv’) WHERE user=’root’;
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    mysql -u root mysql -p < /usr/share/doc/mythtv-docs-0.21/database/mc.sql

    Reply
  3. namran says:

    if happened to messed with the frontend..
    despite the update..

    can just..

    “yum install -y mythtv-frontend-0.21-213.el5 –enablerepo atrpms ”

    woohoo..

    mythTV is back..!

    Reply
  4. google says:

    Hey There. I found your blog using msn. This is a really well written article.
    I will be sure to bookmark it and return to read more of your
    useful info. Thanks for the post. I’ll definitely return.

    Reply
  5. ???? says:

    Victorious one CSN Coyotes basketball group.. alot more energy.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *