|
Introduce go.crypto/ssh support
A new "client key directory" is introduced,
which may contain one or more SSH key pairs.
The client key directory is initialised to
$JUJU_HOME/ssh in juju/conn.go. If the
directory does not exist, it is created with
a new 2048-bit RSA keypair.
If the default SSH client is not available
at bootstrap time, then a go.crypto/ssh client
will be used; this client will attempt to use
each of the key pairs it finds in the client
key directory.
The OpenSSH client (in utils/ssh/ssh_openssh.go)
is modified to use any of the default SSH
identities, or any of the ones found in the
client key directory.
Fixes #1263851
https://code.launchpad.net/~axwalk/juju-core/ssh-gocrypto-client/+merge/200628
(do not edit description out of merge proposal)
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1116 lines, -188 lines) |
Patch |
|
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
cloudinit/sshinit/configure.go
|
View
|
|
3 chunks |
+14 lines, -6 lines |
1 comment
|
Download
|
|
M |
cmd/juju/scp.go
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
cmd/juju/scp_test.go
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
cmd/juju/ssh.go
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
cmd/juju/ssh_test.go
|
View
|
|
2 chunks |
+5 lines, -12 lines |
0 comments
|
Download
|
|
M |
environs/config/authkeys.go
|
View
|
|
2 chunks |
+14 lines, -6 lines |
1 comment
|
Download
|
|
M |
environs/manual/fakessh.go
|
View
|
|
5 chunks |
+21 lines, -12 lines |
1 comment
|
Download
|
|
M |
environs/manual/init.go
|
View
|
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
|
M |
environs/manual/init_test.go
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
environs/manual/provisioner.go
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
environs/sshstorage/storage.go
|
View
|
|
3 chunks |
+7 lines, -5 lines |
1 comment
|
Download
|
|
M |
environs/sshstorage/storage_test.go
|
View
|
|
3 chunks |
+26 lines, -18 lines |
0 comments
|
Download
|
|
M |
environs/testing/bootstrap.go
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
juju/conn.go
|
View
|
|
7 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
|
M |
juju/conn_test.go
|
View
|
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
provider/common/bootstrap.go
|
View
|
|
13 chunks |
+29 lines, -9 lines |
0 comments
|
Download
|
|
M |
provider/common/bootstrap_test.go
|
View
|
|
8 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
utils/ssh/authorisedkeys.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
utils/ssh/clientkeys.go
|
View
|
|
1 chunk |
+193 lines, -0 lines |
0 comments
|
Download
|
|
A |
utils/ssh/clientkeys_test.go
|
View
|
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
|
M |
utils/ssh/ssh.go
|
View
|
|
1 chunk |
+145 lines, -62 lines |
1 comment
|
Download
|
|
A |
utils/ssh/ssh_gocrypto.go
|
View
|
|
1 chunk |
+197 lines, -0 lines |
1 comment
|
Download
|
|
A |
utils/ssh/ssh_openssh.go
|
View
|
|
1 chunk |
+180 lines, -0 lines |
0 comments
|
Download
|
|
M |
utils/ssh/ssh_test.go
|
View
|
|
2 chunks |
+48 lines, -17 lines |
0 comments
|
Download
|
|
M |
utils/trivial.go
|
View
|
|
1 chunk |
+10 lines, -0 lines |
1 comment
|
Download
|
|
M |
utils/trivial_test.go
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3
|