sudo shchsh -s /usr/local/bin/bash admin
This may be related but I don't consider this a problem: I also noticed that I needed to renew my SSH authorisation.
Is there a way to prevent the login-shell from reverting to the installer default?
Quote from: mausy5043 on January 28, 2018, 02:14:13 pmThis may be related but I don't consider this a problem: I also noticed that I needed to renew my SSH authorisation.SSH keys must be stored in the user configuration.Please note that this may change in the future.
Quote from: mausy5043 on January 28, 2018, 02:14:13 pmIs there a way to prevent the login-shell from reverting to the installer default?No, this is the expected behaviour. System users are managed by OPNsense and that is the reason why any manual change will not survive.Shell settings must be added to the user in the GUI (legacy) system (needs some programming).
Yes. I transfer the SSH key using ssh-copy-id so it should end up in ~/.ssh/authorized_keys
Quote from: mausy5043 on January 28, 2018, 03:38:56 pmYes. I transfer the SSH key using ssh-copy-id so it should end up in ~/.ssh/authorized_keysDo it via the GUI: In Access -> Users you can paste the public key file into the text field. This will work.
Have you tried to add a separate user from the command line? It may be that it is flushed on reboot, but I'm not entirely sure.
PS: User shell can be manipulated here temporarily... https://github.com/opnsense/core/blob/c14000892b603a70c931aca44db01021e49d12d8/src/etc/inc/auth.inc#L442