LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   X tunneling with SSH (https://www.linuxquestions.org/questions/linux-networking-3/x-tunneling-with-ssh-328716/)

phekno 05-30-2005 10:22 PM

X tunneling with SSH
 
I'm trying to setup my Slackware box to provide an Xwindow server so that I can use OpenSSH's tunneling feature to run an X client through that. I have searched but can't seem to find what I'm looking for. If anyone has any suggestions or links please let me know.

Thanks,
Phekno

sigsegv 05-30-2005 11:05 PM

On the server -- Read sshd_config and enable X connections.

On the client -- man ssh and use the -X flag when connecting.

phekno 05-31-2005 12:23 AM

Well....I guess I forgot to check my /etc/ssh/ssh_config file. My bad. Anyway, I fixed that and when I ssh'd in and did startx it started an X (KDE) session on my server. While that is great and stuff, what I wanted is for the X server to forward it to my remote connection. Anyway, if you could help some more that would be great. I'm using an academic version of SSH on the client side and it looks like it would support remote X sessions but I guess I'm not sure how to do that. It's not urgent or anything....just something I'm tinkering around with.

Thanks,
Phekno

sigsegv 05-31-2005 10:43 AM

Wait ... What kind of system are you using on the client end? You'll need an X server on the client computer.

Also, when tunneling X through SSH, you don't 'startx'. You just start the program you want to use as though you were in an X session on the remote computer. For example, to start firefox on the remote machine (assuming all the things for your tunnel to work are in place), you would type 'firefox' and if all is well, it'll pop up on your local display.


All times are GMT -5. The time now is 10:45 AM.