juju add-ssh-key should have an option to specify a file

Bug #1892271 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

Hi,

The current practice is:

| juju add-ssh-key "$(cat ~/mykey.pub)"

Any chance of having an option to specify a file to read in and use? So:

| juju add-ssh-key -f ~/mykey.pub

This makes scripting easier as you can just run that specific command as a specific user rather than various escaping or playing with permissions to be able to read mykey.pub.

Haw Loeung (hloeung)
description: updated
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.8.3
status: New → Triaged
importance: Undecided → High
Pen Gale (pengale)
Changed in juju:
milestone: 2.8.4 → none
importance: High → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
Haw Loeung (hloeung)
Changed in juju:
importance: Low → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.