From: Michael K. <li...@mk...> - 2020-02-13 10:32:59
|
> Am 13.02.2020 um 11:30 schrieb Michael Keuter <li...@mk...>: > > > >> Am 13.02.2020 um 11:16 schrieb Michael Knill <mic...@ip...>: >> >> Hi Group >> >> I have a little problem that should be easy to fix I believe. >> I have now taken on another employee and I'm looking at simple management of SSH Keys as this is how we access our systems. I want to add individual key files to /mnt/kd/ssh_keys to do this. >> I also have /mnt/kd/root enabled but only to provide a custom .bashrc which sets a PATH variable. >> >> The problem is that if I have /mnt/kd/root enabled, the /root/.ssh/authorized_keys file is no longer dynamic e.g. it does not change if I change the files in /mnt/kd/ssh_keys and reboot. >> Is there any way to set this PATH variable without requiring /mnt/kd/root? >> >> Obviously rebooting is a pain to update so I assume that I can just cat /mnt/kd/ssh_keys/* > /tmp/root/.ssh/authorized_keys and all will be well. >> >> Thanks all. >> >> Regards >> Michael Knill > > I use a script, that backs up "authorized_keys" and then runs: Update: It **moves** authorized_keys! > service sshd stop; service sshd init Michael http://www.mksolutions.info |