Am 20.01.2012 um 16:17 schrieb Prentice Bisbal:

> SSH forwarding is already working in my normal 'non-SGE' environment
> through the  use of ssh-agent. The issue with the environment the job
> starts and runs in. Since my key requires a password, I can't just add
> those lines to the start of my job script.
> 
> I think the only solution is to configure passphraseless SSH between all
> cluster nodes.

This would work, but needs to be done for each and every user. Hostbased 
authentication can avoid it:

http://arc.liv.ac.uk/SGE/howto/hostbased-ssh.html

PS: For actual distributions /etc/ssh/ssh_host_ecdsa_key and the public part 
must be removed and its recreation (done when starting sshd) be avoided. The 
latest I found was that hostbased authentication is broken if these are present 
(and I have to confirm it). If you google for "ssh_host_ecdsa_key hostbased" 
you can find serveral reports about it.


> I just wanted to confirm that, if possible, with others
> before starting down that road.
> 
> Prentice
> 
> On 01/19/2012 05:03 PM, "Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D." wrote:
>> did you try
>> $ ssh-agent $SHELL
>> $ ssh-add
>> 
>> 
>> On 1/19/2012 2:19 PM, Prentice Bisbal wrote:
>>> Does anyone on here have experience configuring SGE to work with
>>> MATLAB's Distributed Computing Environment (MDCE)?
>>> 
>>> SGE is not natively supported by MATLAB, but can use their 'generic
>>> scheduler' facility. They provide all of the scripts needed, and even
>>> include a
>>> template for the PE. I've followed all the instructions, but when I try
>>> to submit a parallel job using the validation function of MATLAB's
>>> parallel configuration manager, it fails.
>>> 
>>> Digging into the problem, it looks like MATLAB uses the first task to
>>> start an mpd daemon, because in the MATLAB logs I see this:
>>> 
>>> Starting SMPD on node65 node66  ...
>>> ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null node65
>>> "/usr/loc
>>> al/matlab/bin/mw_smpd" -s -phrase MATLAB -port 25955
>>> Permission denied, please try again.
>>> Permission denied, please try again.
>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
>>> Launching smpd failed for node: node65
>>> 
>>> Stopping SMPD on  ...
>>> Exiting with code: 0
>>> 
>>> When I ssh into the node where the job is starting (node65) in this
>>> case, I run that command just fine. Both of these commands work:
>>> 
>>> ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null node65
>>> "/usr/local/matlab/bin/mw_smpd" -s -phrase MATLAB -port 25955
>>> ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null node66
>>> "/usr/local/matlab/bin/mw_smpd" -s -phrase MATLAB -port 25955
>>> 
>>> I suspect this is a problem with SGE not forwarding my SSH key, or
>>> something of that nature. I require a passphrase for my SSH key, so I
>>> suspect that might be the problem. Can anyone confirm or deny that?
>>> 
>> 
>> -- 
>> Hung-Sheng Tsao Ph D.
>> Founder & Principal
>> HopBit GridComputing LLC
>> cell: 9734950840
>> 
>> http://laotsao.blogspot.com/
>> http://laotsao.wordpress.com/
>> http://blogs.oracle.com/hstsao/
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
> 


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to