Forum Discussion
Laurent_Philipp
Nimbostratus
Jun 25, 2015Configure SSH public key with LROS
I am trying to configure a public SSH key for Linerate.
According to /etc/ssh/sshd_config it needs to be configured under /var/run/sshd_authorized_keys.d/
However I can't write files in that director...
Daniel_Beckham_
Nimbostratus
Aug 19, 2015I'm not sure why, or how you are logged in as root, but if you
ssh admin@hostname, you are dropped at the LROS prompt. If you then type bash, you will be dropped into a bash shell as the admin user. You can then run commands using sudo, which will give you permission to write to the file you need to write to: sudo vim /var/run/sshd_authorized_keys.d/admin.
I just did this on a 2.6.1 installation and it works very nicely. I'm not sure whether the
/var/run directory will persist between reloads, though. I still need to test that. This comment makes me think that it might be possible to configure this through LROS, but I haven't been able to find a command or any other documentation:
The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
but this is overridden so installations will only check the LROS managed dir
AuthorizedKeysFile /var/run/sshd_authorized_keys.d/%u
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
