Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3798)

Issue 57690049: utils/ssh: explicitly specify default identities

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by axw
Modified:
10 years, 2 months ago
Reviewers:
mp+204595, wallyworld
Visibility:
Public.

Description

utils/ssh: explicitly specify default identities There is a bug in ssh_openssh.go: if any identities are specified, then default identities are not attempted unless they are loaded into the ssh-agent. This is only a problem if the user relies on the default identity, AND explicitly specifies authorized-keys in their environment config. This problem is fixed by explicitly specifying the default identities if any identities are specified, which is almost always (~/.juju/ssh). Fixes lp:1275657 https://code.launchpad.net/~axwalk/juju-core/lp1275657-default-ssh-identities/+merge/204595 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M utils/ssh/export_test.go View 1 chunk +1 line, -0 lines 0 comments Download
M utils/ssh/ssh_openssh.go View 2 chunks +25 lines, -2 lines 2 comments Download
M utils/ssh/ssh_test.go View 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 3
axw
Please take a look.
10 years, 2 months ago (2014-02-04 03:21:51 UTC) #1
wallyworld
LGTM, just a little iffy about hard coding the default identities, not sure if there's ...
10 years, 2 months ago (2014-02-04 03:31:47 UTC) #2
axw
10 years, 2 months ago (2014-02-04 03:37:31 UTC) #3
https://codereview.appspot.com/57690049/diff/1/utils/ssh/ssh_openssh.go
File utils/ssh/ssh_openssh.go (right):

https://codereview.appspot.com/57690049/diff/1/utils/ssh/ssh_openssh.go#newco...
utils/ssh/ssh_openssh.go:27: }
On 2014/02/04 03:31:47, wallyworld wrote:
> Is there some env variable which tells where ~/.ssh is? Or does ssh always
> assume its files live in ~/.ssh? 
> Are there the only identities there can be? Is there a lib call we can make to
> get these values?

According to man ssh, these are the only ones and they are always in ~/.ssh.
There's no SSH_HOME or anything like that. There's also no dynamic source for
obtaining a list, AFAIK.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b