LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 07-09-2003, 03:38 AM   #1
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105
Thanked: 0
X11 Forwarding - I'm lost


[Log in to get rid of this advertisement]
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
lhiggins is offline     Reply With Quote
Old 07-09-2003, 06:00 AM   #2
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105
Thanked: 0

Original Poster
oh and it did restart ssh after i edited it's conf's.
lhiggins is offline     Reply With Quote
Old 07-09-2003, 06:36 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,124
Thanked: 1
i think you need to set the DISPLAY environment variable.
whansard is offline     Reply With Quote
Old 07-09-2003, 06:45 AM   #4
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105
Thanked: 0

Original Poster
Is that in XF86Config?
lhiggins is offline     Reply With Quote
Old 07-09-2003, 06:48 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,124
Thanked: 1
"environment variable"

export DISPLAY=
whansard is offline     Reply With Quote
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
Thanked: 0
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.
moses is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 15 07-17-2007 11:22 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 04:01 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration