Howdy,
What’s the recommended way of adding user(s) for primarily ssh access to PiKVM command line? I can see that useradd is available. Anything we should be aware before putting it to good use?
Howdy,
What’s the recommended way of adding user(s) for primarily ssh access to PiKVM command line? I can see that useradd is available. Anything we should be aware before putting it to good use?
You’ll need to put the system in rw mode before making changes that you want to persist, but other than that it is a pretty typical Linux system, I’d recommend using SSH keys rather than username/password for login, but all other security recommendations also apply, don’t port forward your SSH (or the web port) to the public internet without hardening the system much further.
All that, plus
visudo and enable %wheel ALL=(ALL:ALL) ALL ;wheel group;PS1 in .bashrc:[user@pikvm ~]$ diff /etc/skel/.bashrc ~/.bashrc
73c73
< export PROMPT_COMMAND='PS1="[$(prompt_user)@$(prompt_host)$(prompt_git)]$(prompt) "'
---
> export PROMPT_COMMAND='PS1="\[\033]0;\u@\h:\w\007\][$(prompt_user)@$(prompt_host)$(prompt_git)]$(prompt) "'
Likewise in /root/.bashrc. This way instead of something generic, window tile would display for example root@pikvm:/etc/profile.d.
It would probably make sense to put it into /etc/skel/.bashrcand make it default – it is a very useful feature.
Seconded – please make it the default for all shell accounts.
@YarL_PiKVM how about it?