Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Ubuntu 20.04 asks for root passphrase when I SSH login as non-root
As I was following this tutorial (https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04), I created a new user account at step 2, including an account password. Then, I successfully added sudo privileges to this user account (step 3), set up the basic firewall and enables external access for my regular user (step 5).
So far, so good.
Now, when I externally login using ssh user@ipaddress, Ubuntu 20.04 asks for my passphrase, but it permits only the passphrase for my root user. Isn’t that strange? What if I add another user that is not me. He or she will have to know the passphrase for my root user account. That is not really save.
Please let me know what is good practice here.
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.×