LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2005, 10:22 PM   #1
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 15
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
 
Old 05-30-2005, 11:05 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
On the server -- Read sshd_config and enable X connections.

On the client -- man ssh and use the -X flag when connecting.
 
Old 05-31-2005, 12:23 AM   #3
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
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
 
Old 05-31-2005, 10:43 AM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
SSH tunneling X AzZuM Linux - Security 3 11-27-2004 01:59 AM
SSH Tunneling danny_beta_read Linux - Networking 0 06-10-2004 02:43 PM
Tunneling through SSH rech Slackware 1 11-28-2003 08:21 PM
tunneling with ssh barbanero Linux - Security 2 01-24-2002 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration