Merge juju-bmc:StrictHostKeyChecking_no into juju-bmc:master

Proposed by Joe Guo
Status: Merged
Approved by: Jose Guedez
Approved revision: 883194a41c6b7b397fb36d3531f4bede48ec5c55
Merge reported by: Jose Guedez
Merged at revision: 883194a41c6b7b397fb36d3531f4bede48ec5c55
Proposed branch: juju-bmc:StrictHostKeyChecking_no
Merge into: juju-bmc:master
Diff against target: 12 lines (+1/-0)
1 file modified
src/juju-bmc (+1/-0)
Reviewer Review Type Date Requested Status
Jose Guedez (community) Approve
Review via email: mp+384600@code.launchpad.net

Commit message

juju-bmc: set StrictHostKeyChecking to no

when ssh to new host, ssh will ask question.
However, while using sshpass to call ssh, the question will now show up,
and command will exit without message.

set StrictHostKeyChecking=no to avoid such issue.

To post a comment you must log in.
Revision history for this message
Jose Guedez (jfguedez) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/juju-bmc b/src/juju-bmc
2index da36acd..acd6c7d 100755
3--- a/src/juju-bmc
4+++ b/src/juju-bmc
5@@ -155,6 +155,7 @@ def main():
6 'sshpass', '-p', power_pass,
7 'ssh', '{}@{}'.format(power_user, power_address),
8 '-o', 'PubkeyAuthentication=no',
9+ '-o', 'StrictHostKeyChecking=no',
10 ] + command
11 else:
12 LOG.info('connecting to BMC via ipmi')

Subscribers

People subscribed via source and target branches

to all changes: