How to pass SSH options such as StrictHostKeyChecking?

26 views
Skip to first unread message

Mehdi Sadeghi

unread,
Nov 6, 2015, 6:13:08 AM11/6/15
to saga-users
Hi there,


I am using saga-python in background along with userpass ssh context. Therefore I need to directly login to remote host. First time that one does ssh to a host there is a question whether we trust the remote host or not. There is a flag called "StrictHostKeyChecking=no "to change this behavior.

I have troubles passing this flag to saga job service. Can somebody please help me with this issue?

Thanks, Mehdi

Andre Merzky

unread,
Nov 6, 2015, 6:21:56 AM11/6/15
to saga-...@googlegroups.com
Hmm, I though we'd pass that flag by default already - let me check...

Andre.
> --
> You received this message because you are subscribed to the Google Groups
> "saga-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to saga-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
99 little bugs in the code.
99 little bugs in the code.
Take one down, patch it around.

127 little bugs in the code...

Andre Merzky

unread,
Nov 6, 2015, 6:24:31 AM11/6/15
to saga-...@googlegroups.com
Ah, no -- but what we *do* check is if the remote side prompts for a
confirmation of the key, and we blindly send a 'yes' [1]. I assume
that does not work for you? In that case I would not mind setting the
flag by default instead...

Best, Andre.


[1] https://github.com/radical-cybertools/saga-python/blob/devel/src/saga/utils/pty_shell_factory.py#L248

Mehdi Sadeghi

unread,
Nov 7, 2015, 2:01:08 PM11/7/15
to saga-...@googlegroups.com
Hi Andre,

I just checked with my laptop at home. As you said SAGA will add the host to my known hosts. But for any reason on my computer at work it was prompting for a password and I was getting an exception for that. I can provide you with more information if you need. BTW I have tried to add that key to ~/.ssh/config file to force ssh to skip that question.

You received this message because you are subscribed to a topic in the Google Groups "saga-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/saga-users/Rfc3Zzh6f0U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to saga-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages