Merge lp:~axwalk/juju-core/ssh-fingerprint-platform-independent into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2190 |
Proposed branch: | lp:~axwalk/juju-core/ssh-fingerprint-platform-independent |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
385 lines (+223/-47) 5 files modified
utils/ssh/authorisedkeys.go (+118/-14) utils/ssh/authorisedkeys_test.go (+51/-0) utils/ssh/fingerprint.go (+18/-20) utils/ssh/fingerprint_test.go (+36/-0) utils/ssh/fingerprint_win.go (+0/-13) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/ssh-fingerprint-platform-independent |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+200980@code.launchpad.net |
Commit message
utils/ssh: platform-
Windows CLI is broken as keyFingerprint has
not been implemented. We can't rely on
ssh-keygen there.
I've rewritten the keyFingerprint function in
pure Go. This involves writing a parser for
authorized_keys lines. The base64-decoded key
is MD5-summed, and then formatted with colons
separating the hex-encoded bytes.
Description of the change
utils/ssh: platform-
Windows CLI is broken as keyFingerprint has
not been implemented. We can't rely on
ssh-keygen there.
I've rewritten the keyFingerprint function in
pure Go. This involves writing a parser for
authorized_keys lines. The base64-decoded key
is MD5-summed, and then formatted with colons
separating the hex-encoded bytes.
Reviewers: mp+200980_ code.launchpad. net,
Message:
Please take a look.
Description: independent KeyFingerprint
utils/ssh: platform-
Windows CLI is broken as keyFingerprint has
not been implemented. We can't rely on
ssh-keygen there.
I've rewritten the keyFingerprint function in
pure Go. This involves writing a parser for
authorized_keys lines. The base64-decoded key
is MD5-summed, and then formatted with colons
separating the hex-encoded bytes.
https:/ /code.launchpad .net/~axwalk/ juju-core/ ssh-fingerprint -platform- independent/ +merge/ 200980
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/49710043/
Affected files (+186, -45 lines): authorisedkeys. go authorisedkeys_ test.go fingerprint. go fingerprint_ win.go
A [revision details]
M utils/ssh/
M utils/ssh/
M utils/ssh/
D utils/ssh/