I'd like to set ssh key on webmin.
I already have keys to use for many servers.
Normally in CLI, I just paste my id_rsa.pub to server server:/whitebear/.ssh/
Where can I set this on webmin interface?
webmin documents - ssh server section
All SSH implementations have options related to how clients authenticate and the messages displayed to them after login. Specifically, you can permit or deny authentication by username and password or username and certificate, stop the root user logging in, and control if rlogin-style .rhosts files are trusted. The exact options differ quite a lot between SSH versions though, so what is possible with OpenSSH may not be if you are running the commercial SSH server.
To edit authentication settings, the steps to follow are:
Click on the Authentication icon on the module's main page to bring up a form like the one shown below.
To save and activate your new authentication settings, hit the Save button at the bottom of the form followed by Apply Changes on the main page.
Before a Unix user can use certificate authentication to login to an SSH server, he must generate a private key with the ssh-keygen command. This module can be configured to work with the Users and Groups module to run this command for all newly created users. If your network uses NFS-mounted home directories, this will allow new users to login to other hosts without needing to supply a password with no further setup needed. To configure the setup of SSH for new users, follow these steps:
Use the command shell within Webmin
You can append a key manually to the authorized_keys from the command shell from within Webmin.
On the machine that needs access, get the public key (and copy it)
cat ~/.ssh/id_ed25519.pub
In Webmin, open a command shell (CTRL+K or click in the left menu on the console image)
Image - Location of the command shell in Webmin menu
IMPORTANT: use two '>>' chars for appending! (one is to overwrite!) Image - command shell example
echo 'ssh-MYPUBLICKEYCHANGETHIS' >> /home/MYUSERNAME/.ssh/authorized_keys
Now you can login from the other machine
ssh MYUSERNAME@myhostname