| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| fishsponge |
Posted: Apr 9 2003, 10:42 AM
|
||||||
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 679 Member No.: 1 Joined: 13-February 03 |
To export your display securely, or even across the internet, do the following:
1. Edit your SSHD config file on the remote machine (try "/etc/ssh/sshd_config") and change the "X11Forwarding" line to say:
2. Restart the SSH Daemon on the remote machine, being careful not to break your connection in the process! 3. On the local machine (localhost) type "xhost +" to allow an X connection from any host. 4. SSH into the remote machine, and start a program that requires an X display! it should appear!! :D If it does not appear, try and use "ssh -v" instead, to enable verbose mode, to see any error messages that are occuring. If everything works as it should, you should see the X connection being opened:
|
||||||
| foobar |
Posted: Sep 23 2004, 03:06 AM
|
|
User Level: 2 ![]() ![]() Group: Members Posts: 15 Member No.: 505 Joined: 6-September 04 |
nonononono! Please don't do this unless you want to have your keystrokes logged by Bad Guys . The ssh/sshd will automagically set up the MIT magic cookies, so there's no need to disable access control on your local X server. X applications will tunnel just fine thru the encrypted tunnel, so long as both client and server have X forwarding enabled.
>On the local machine (localhost) type "xhost +" to allow an X connection from any >host. |
| fishsponge |
Posted: Sep 23 2004, 02:04 PM
|
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 679 Member No.: 1 Joined: 13-February 03 |
ok, "xhost +" is a bad command, but you cannot deny that the above solution does work. (Also, "xhost +" was the best i could do with my knowledge at the time :D)
a better command to use instead of "xhost +" would be what exactly?? |
![]() |
![]() ![]() ![]() |