-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Right, in this case you're logging in interactively which will never
work without stalling in a script even without strict host key checking.
Simply running:
$ starcluster sshmaster mycluster
will log you in interactively just like using ssh manually. This mode
can never be used in a script without stalling. If you additionally pass
a command (in single quotes) to run as I showed in my previous message
it will execute the command without prompting for host-key, print the
output to your screen, and exit.
Make sense?
HTH,
~Justin
On 2/23/12 5:57 PM, David Erickson wrote:
> Hi Justin-
> I get prompted for the key before I even connect to the cluster master, eg:
>
> starcluster sshmaster cluster
> StarCluster - (http://web.mit.edu/starcluster) (v. 0.93.1)
> Software Tools for Academics and Researchers (STAR)
> Please submit bug reports to starcluster_at_mit.edu
>
> The authenticity of host
'ec2-50-112-23-169.us-west-2.compute.amazonaws.com (50.112.23.169)'
can't be established.
> RSA key fingerprint is 17:25:7c:44:d8:07:9a:79:ac:56:53:fa:6b:6c:76:1b.
> Are you sure you want to continue connecting (yes/no)?
>
> -D
>
> On 02/23/2012 02:52 PM, Justin Riley wrote:
>>
> You will not be prompted for host-key checking assuming you're running
> commands, e.g.:
>
> $ starcluster sshmaster mycluster 'find /etc -iname \*.conf'
>
> HTH,
>
> ~Justin
>
> On 2/23/12 2:59 PM, David Erickson wrote:
> >>> Hi is there any way using Starcluster's sshmaster/sshnode commands to
> >>> disable host key checking?
> >>> EG:
> >>> UserKnownHostsFile=/dev/null
> >>> StrictHostKeyChecking=no
> >>>
> >>> I'd like to script the commands an interactive yes/no queries are
> >>> problematic.
> >>>
> >>> Thanks,
> >>> David
> >>> _______________________________________________
> >>> StarCluster mailing list
> >>> StarCluster_at_mit.edu
> >>> http://mailman.mit.edu/mailman/listinfo/starcluster
>
>>
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAk9GxboACgkQ4llAkMfDcrkq0ACeImGtBEeQuYOlKmctJcYRWc5W
lyEAnRtTg3rZ4a67FBaypHT4bj3h7TUb
=WsNt
-----END PGP SIGNATURE-----
Received on Thu Feb 23 2012 - 18:03:24 EST