Can't SSH with "juju ssh" command to EC2 instance.
Bug #1313785 reported by
Alex Lomov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Andrew Wilkins | ||
juju (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
After updating juju to 1.19.1-trusty-amd64 version I can't ssh with juju command.
Here are details: https:/
I am working with aws btw (ec2 environment type).
The error message is: "ssh: Could not resolve hostname ip-172-
Also I can SSH with standard SSH command:
"ssh -i ~/.juju/
It seems that `juju ssh` tries to us private DNS name.
Related branches
lp:~axwalk/juju-core/lp1313785-ssh-useproxy
- Juju Engineering: Pending requested
-
Diff: 295 lines (+81/-68)5 files modifiedcmd/juju/debughooks_test.go (+32/-24)
cmd/juju/scp.go (+5/-10)
cmd/juju/scp_test.go (+10/-2)
cmd/juju/ssh.go (+22/-12)
cmd/juju/ssh_test.go (+12/-20)
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.19.2 |
importance: | High → Critical |
Changed in juju (Ubuntu): | |
status: | New → Triaged |
Changed in juju-core: | |
importance: | Critical → High |
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Andrew Wilkins (axwalk) |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I am not able to reproduce this.
juju ssh will now ssh to machine 0's public address directly, and then proxy through that to machine 0's internal address. This is to support environments where machines do not have unique public addresses (i.e. with load balancing).
Can you please ssh to the machine directly and then check whether you can resolve ip-172- 31-21-242. us-west- 2.compute. internal. If that does not resolve, that would indicate a problem with EC2. If it *does* resolve, then please try "juju ssh" again with --debug and attach the output.