Revision bf75f132
b/lib/ssh.py | ||
---|---|---|
75 | 75 |
|
76 | 76 |
def _BuildSshOptions(self, batch, ask_key, use_cluster_key, |
77 | 77 |
strict_host_check): |
78 |
"""Builds a list with needed SSH options. |
|
79 |
|
|
80 |
@param batch: same as ssh's batch option |
|
81 |
@param ask_key: allows ssh to ask for key confirmation; this |
|
82 |
parameter conflicts with the batch one |
|
83 |
@param use_cluster_key: if True, use the cluster name as the |
|
84 |
HostKeyAlias name |
|
85 |
@param strict_host_check: this makes the host key checking strict |
|
86 |
|
|
87 |
@rtype: list |
|
88 |
@return: the list of options ready to use in L{utils.RunCmd} |
|
89 |
|
|
90 |
""" |
|
78 | 91 |
options = [ |
79 | 92 |
"-oEscapeChar=none", |
80 | 93 |
"-oHashKnownHosts=no", |
Also available in: Unified diff