[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Can't run x things over ssh link



On Monday 29 January 2007 21:21, Rick Sewill wrote:
>On Mon, 2007-01-29 at 20:27 -0500, Gene Heskett wrote:
>> >By default, ssh doesn't do X forwarding any longer.  Use the "-X" or
>> >"-Y" options to ssh,
>> >
>> >or turn on "ForwardX11Trusted" in your ssh_config.
>>
>> That's what was puzzling Rick, ForwardX11Trusted, was already 'yes',
>> both here and on the machine I was accessing.
>
>Do you have "ForwardX11Trusted" in your local ~/.ssh/config file
>and is it being used when you access the remote machine?
>
>ssh should pattern match against all the "Host name" entries,
>using the earliest matched entries first.

That part doesn't seem to match but its late, I've printed this and will 
check things out in the morning.  Many thanks.


>The "Host *" represents the default and should be last in ~/.ssh/config
>
>If you do "ssh -v -v -v name", it should say something like:
>debug1: Reading configuration data /home/rsewill/.ssh/config
>
>If I construct my ~/.ssh/config file, and have ~/.ssh and ~/.ssh/config
>have the correct file permissions, as follows:
>
>Host laptop laptop-* *-laptop *-laptop-*
>	HostKeyAlias laptop
>	HostName laptop
>	IdentityFile ~/.ssh/id_dsa-home
>	User rsewill
>
>Host x11 x11-* *-x11 *-x11-*
>	ForwardX11 yes
>	ForwardX11Trusted yes
>
>Host *
>	Cipher blowfish
>	Compression yes
>	ForwardX11 no
>	ForwardX11Trusted no
>	GatewayPorts no
>	IdentitiesOnly yes
>	MACs hmac-sha1
>	PasswordAuthentication no
>	Protocol 2
>	PubkeyAuthentication yes
>
>I can then do:
>rsewill rsewill:~ <2:3> $ ssh laptop
>Last login: Mon Jan 29 20:09:46 2007 from desktop.rsewill.cableone.net
>rsewill laptop:~ <1:1> $ echo $DISPLAY
>
>rsewill laptop:~ <1:2> $ exit
>rsewill rsewill:~ <2:4> $ ssh laptop-x11
>Last login: Mon Jan 29 20:11:49 2007 from desktop.rsewill.cableone.net
>rsewill laptop:~ <1:13> $ echo $DISPLAY
>localhost:10.0
>rsewill laptop:~ <1:14> $
>
>Only in the second case, is X forwarding enabled.
>
>--
>Rick Sewill

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2007 by Maurice Eugene Heskett, all rights reserved.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]