[Techtalk] ssh on a mac to a linux machine

Maria McKinley maria at shadlen.org
Wed Jul 25 21:11:24 UTC 2007


Lucia Sanchez wrote:
> Maria McKinley wrote:
>>
>> I think it must be something to do with X, since the machines that are 
>> not able to open display do not have X running locally. I'd really 
>> rather not install all of the X stuff, does anyone know what packages 
>> in particular are used for X11Forwarding?
> 
> I can't answer this particular question as I installed all the X stuff, 
> but you need to run the ssh command from the xterm that opens when you 
> start X.
> 

Actually I use a cool trick in my .bashrc

# export DISPLAY=$REMOTEHOST:0.0
if [ ${#DISPLAY} -eq 0 ]; then
          export DISPLAY=':0.0'
fi

that allows me to open windows from terminal as long as X11 is running. 
It works for my other linux machines just fine, so I'm sure this isn't 
the issue.

thanks,
maria


More information about the Techtalk mailing list