• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: X Forwarding via ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X Forwarding via ssh


  • Subject: Re: X Forwarding via ssh
  • From: Jeremy Huddleston <email@hidden>
  • Date: Thu, 8 Nov 2007 09:25:09 -0800

Did you restart sshd on the remote server after setting X11Forwarding to yes? You should have a session that looks like this:

~ $ which ssh
/usr/bin/ssh

~ $ echo $DISPLAY
/tmp/launch-wqzBDv/:0

~ $ ssh 10.0.10.2
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Thu Nov 8 09:23:38 2007


~ $ echo $DISPLAY
localhost:10.0


On Nov 8, 2007, at 7:29 AM, J K wrote:

On Nov 7, 2007 12:14 PM, Mark J. Reed <email@hidden> wrote:
On 11/7/07, Mark J. Reed <email@hidden> wrote:
2. It's possible something in your remote shell config is unsetting
DISPLAY.  Try this:

ssh -Y remotehost bash --norc --noprofile -c 'echo $DISPLAY'

Whups; that actually won't get you anything even if it's working due to quoting issues - $DISPLAY is expanded before sshd has a chance to set it. Try this instead:

ssh -Y remotehost 'bash --norc --noprofile -c "echo $DISPLAY"  '

note the extra quotes around the whole bash command line.


Hey, I've got nothing in my .bashrc/.bash_profile/.profile/etc. that might contribute to changing the display variable. However I ran these anyway to no avail.

The xauth warning message was new to me, and I got around it (in
probably poor form) by copying my HOST .Xauthority and saving it to my
REMOTE machine. But it still didn't alleviate my problems in X11
forwarding, which still persist.

empty display variable, /etc/sshd_config has X11Forwarding set to yes,
etc. Any other suggestions are greatly appreciated, as X11 Forwarding
is important to my work!

Thanks,
J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
References: 
 >X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: Bill Campbell <email@hidden>)
 >Re: X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: Bernard Giroux <email@hidden>)
 >Re: X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: "Mark J. Reed" <email@hidden>)
 >Re: X Forwarding via ssh (From: "Mark J. Reed" <email@hidden>)
 >Re: X Forwarding via ssh (From: "J K" <email@hidden>)

  • Prev by Date: Re: Changing xterm colors in Leopard
  • Next by Date: Re: Changing xterm colors in Leopard
  • Previous by thread: Re: X Forwarding via ssh
  • Next by thread: X11 debugging pt.1
  • Index(es):
    • Date
    • Thread