LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2003, 03:38 AM   #1
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Rep: Reputation: 15
X11 Forwarding - I'm lost


RedHat 9

Hello all,

trying to enable X11 forwarding. Basically I edited my /etc/ssh/sshd_config file to enable X11 forwarding. But when I log into my system and startx - it doesnt forward the screen onto the ssh terminal - but only views locally. I looked through the XF86Config file for any options, but there weren't any. Does anyone know what else I have to do?

Thanks
 
Old 07-09-2003, 06:00 AM   #2
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Original Poster
Rep: Reputation: 15
oh and it did restart ssh after i edited it's conf's.
 
Old 07-09-2003, 06:36 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i think you need to set the DISPLAY environment variable.
 
Old 07-09-2003, 06:45 AM   #4
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Original Poster
Rep: Reputation: 15
Is that in XF86Config?
 
Old 07-09-2003, 06:48 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
"environment variable"

export DISPLAY=
 
Old 07-09-2003, 11:20 AM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
The whole point of the X11 forwarding is that you don't have to set DISPLAY or mess with any of that.
It's much easier to start X on the local machine and display X apps from the remote machine to your local machine. . .
Anyway, when you log in to your remote computer, do a:
Code:
printenv DISPLAY
It should say something like:
Code:
your.local.host.name:10
If it doesn't, X11 forwarding isn't working in sshd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
X11 forwarding BigNate Linux - Software 16 06-21-2011 02:39 AM
X11 forwarding paul_mat Linux - Newbie 3 12-12-2004 07:30 PM
X11 forwarding JanDeMan Mandriva 1 04-17-2004 10:02 PM
Need Help with X11 forwarding phatboyz Linux - General 3 04-16-2004 04:17 PM
forwarding x11 via thru a firewall fddi1 Linux - Security 1 09-28-2001 10:56 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration