By aneslin
Hello, I use SSH key to login as root. now how can I login into virtualmin by a root password?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I have not tested this solution but from what I understand of webmin/virtualmin authentication it should solve the issue.
First you’ll want to set a root password by logging in via ssh and running passwd
Then, make sure that in your /etc/ssh/sshd_config file the following is set:
PasswordAuthentication no
This will allow you to log in as root with a password from the console in the control panel (which your droplet sees as a local display and keyboard) but will not allow remote ssh access with a password.
Now that a password is set for the root user virtualmin should allow you to log in and you will have access to this without making your ssh service susceptible to brute force attacks.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.