> Am 13.02.2020 um 11:30 schrieb Michael Keuter <li...@mksolutions.info>:
> 
> 
> 
>> Am 13.02.2020 um 11:16 schrieb Michael Knill 
>> <michael.kn...@ipcsolutions.com.au>:
>> 
>> 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





_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to