Re: Oh dear - another clueless 'setenv DISPLAY' question...
Re: Oh dear - another clueless 'setenv DISPLAY' question...
- Subject: Re: Oh dear - another clueless 'setenv DISPLAY' question...
- From: James Elliott <email@hidden>
- Date: Fri, 10 Oct 2008 14:55:07 -0500
Being able to issue remote commands without being prompted for a
password is important and valuable. The good news is that with ssh,
you can even do that in a secure way, which was never true of the
rhosts approach. The even better news is that, although this used to
require a bunch of manually-installed magic to make work on the Mac,
Leopard has provided excellent support, integrated with the Mac
Keychain.
Hopefully this article will get you going:
http://www.mactips.org/archives/2007/12/20/using-passwordless-ssh-the-easy-guide-leopard-only/
Once you do that, you should just be able to do the ssh command you
cited below, and not deal with the password prompt.
-Jim
On Oct 10, 2008, at 14:44, email@hidden wrote:
Hi,
I have an old environment at work that I'm trying to resurrect
whereby I use my Mac and X11 to run CAD jobs on my linux box and
display their windows back on my Mac. I used to do this by running a
script that was invoked when I double-clicked on the icons of the
CAD package files. That script looked like:
xhost + my_linux_machine
rsh my_linux_machine -l mueck "source ~/.login; setenv DISPLAY
my_macs_IP_address:0; cad_command &"
The beauty of the above was that I didn't have to enter my password
for the rsh command because I had my Mac listed in the linux
box's .rhosts file i.e. my Mac was granted permission with no
questions asked.
Now I know that the latest X11 frowns upon setting DISPLAY and I can
easily do:
ssh -Y mueck@ my_linux_machine
-- enter my password
cad_command
However when automating the ssh method via double-click it's a major
pain to have to enter my password all the time. Can some kind soul
please tell me how to either modify the rsh method to get around the
DISPLAY thing, or advise some way to get around the password
requirement in the ssh method. Regarding the ssh method, I've
already tried making a ~/.shosts file and a ~/.ssh/known_hosts file
but neither work. Going to our IT department (who don't like Macs)
is not an option.
I'm only just average at unix & X11 stuff...
Thanks,
Mick
_______________________________________________
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