I can add password to server In addition to key? then I can open server or with key or with 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!
Hello, @bsdaminut
Could you please let me know if you want to have both as authentication method when connecting to your server, e.g to have the password option if you connect from machine that doesn’t have the key needed for password less login?
If you want to enable password level authentication you need to set the PasswordAuthentication to yes in the sshd config file.
What you have to do is edit the /etc/ssh/sshd_config file and provide PasswordAuthentication with a value of Yes.
vim /etc/ssh/sshd_config
Find:
PasswordAuthentication no
press i for insert mode
Change to:
PasswordAuthentication yes
Save and Close
[escape] :wq
Restart Your SSH deamon:
sudo systemctl restart ssh
Some systems make require
sudo systemctl restart sshd
Hope this helps!
Regards, Alex
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.