ssh required password after reinstall operation system

I reinstall OS from ubuntu 14.04 lts to linux mint 18. After I generated new ssh-key: $ ssh-keygen -t rsa

After I posted my new ssh key to settings account. When I try to conncet

$ ssh root@n.n.n.n it shows an error - My sshconfig -

After I added dsa ssh-key: $ ssh-keygen -t dsa

And it printed me similar error.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @MichaelOjeda:


A few questions: did you add your public key, or keys for that matter, to your root user’s authorized_keys file? Does your user, server-end, have proper permissions setup on your .ssh/ folder? Have you restart your ssh service via the command “service ssh restart,” or a reboot? Your client is clearly, lines 104 and 110, trying to use the keys you made; and then failing on lines 108 and 114.

By the way, you public IP address , and ssh port, is pretty visible in your debug file.

View the original comment