Revision fff33d70
b/lib/constants.py | ||
---|---|---|
146 | 146 |
SSH_HOST_DSA_PUB = SSH_HOST_DSA_PRIV + ".pub" |
147 | 147 |
SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR + "ssh_host_rsa_key" |
148 | 148 |
SSH_HOST_RSA_PUB = SSH_HOST_RSA_PRIV + ".pub" |
149 |
SSH = "ssh" |
|
150 |
SCP = "scp" |
|
149 | 151 |
|
150 | 152 |
# reboot types |
151 | 153 |
INSTANCE_REBOOT_SOFT = "soft" |
b/lib/ssh.py | ||
---|---|---|
116 | 116 |
The ssh call to run 'command' on the remote host. |
117 | 117 |
|
118 | 118 |
""" |
119 |
argv = ["ssh", "-q"]
|
|
119 |
argv = [constants.SSH, "-q"]
|
|
120 | 120 |
argv.extend(KNOWN_HOSTS_OPTS) |
121 | 121 |
argv.append(self._GetHostKeyAliasOption()) |
122 | 122 |
if batch: |
... | ... | |
171 | 171 |
logger.Error("file %s must be an absolute path" % (filename)) |
172 | 172 |
return False |
173 | 173 |
|
174 |
command = ["scp", "-q", "-p"]
|
|
174 |
command = [constants.SCP, "-q", "-p"]
|
|
175 | 175 |
command.extend(KNOWN_HOSTS_OPTS) |
176 | 176 |
command.extend(BATCH_MODE_OPTS) |
177 | 177 |
command.append(self._GetHostKeyAliasOption()) |
Also available in: Unified diff