lpsetup probably shouldn't overwrite your SSH keys with nonsense

Bug #1018823 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lpsetup
Fix Committed
High
Graham Binns

Bug Description

If you're stupid - like me - you can do something like this, misunderstanding what -v and -b do:

 ./lp-setup lxc-install [...] -v /home/graham/.ssh/id_rsa -b /home/graham/.ssh/id_rsa.pub.

What then happens is that both files get overwritten. id_rsa contains "/home/graham/.ssh/id_rsa" and .pub contains " /home/graham/.ssh/id_rsa.pub."

lp-setup probably shouldn't let you blow away your SSH keys through stupidity. Instead, it should abort if id_rsa and id_rsa.pub already exist.

Related branches

Graham Binns (gmb)
Changed in lpsetup:
status: Triaged → In Progress
assignee: nobody → Graham Binns (gmb)
Graham Binns (gmb)
Changed in lpsetup:
status: In Progress → Fix Committed
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.