Feature #7392
closedPlease allow syncing authorized_keys into config.xml
0%
Description
For me it is a bit inconvenient to copy and paste ssh keys into UI.
I am usually doing this using ssh-copy-id which spares me from manually editing authorized_keys.
However on pfsense this file is lost at reboot and regenerated from config.xml
It would be awesome to be able on reboot to read authorized_keys as if it was pasted from the UI and saved back encrypted into config.xml
Thank you.
Updated by Jim Pingle almost 8 years ago
- Status changed from New to Rejected
While I could maybe see a script made to import keys there is no way this would be automated in the way you describe. It would be too easy to unintentionally retain old/outdated keys if a different configuration file was restored onto a box that had keys from an older config.
Updated by ml 35 almost 8 years ago
ok, can you instead at least add an option to not clear the authorized_keys at reboot? it is really difficult to have to paste the keys into the ui
Updated by Kill Bill almost 8 years ago
What's exactly difficult about CTRL+C, CTRL+V?
Updated by ml 35 almost 8 years ago
Kill Bill wrote:
What's exactly difficult about CTRL+C, CTRL+V?
it takes more time and it's not just a CTRL-C CTRL-V (you have to find the key, display it, CTRL-C, open web ui, login, navigate to the section where you paste, ctrl-v).
on the opposite installing via ssh-copy-id it's just typing 'ssh-copy-id root@pfsense' because as a sysadmin I always have a terminal open with a ssh agent having the keys loaded. pfsense is just a small piece of the infrastructure.