I just bought a VPS plan with my hosting provider. I did all the necessary measurements for security and disabled root ssh login, created a custom myuser
in the sudoer group etc.. so far so good. But it annoyed me to always type the password for myuser
on every ssh login, so I deleted it with
sudo passwd –d myuser
Now apparently this was a mistake, since I'm now still asked about the password on every ssh login, but obviously there is no password? I'm a bit confused. Either way, if I type my old password it won't let me login and if I type no password it won't either. Is there a way to save my VPS still or did I officially lock myself out?
And since this hit me a bit unexpectedly, what the hell is going on? Why does ubuntu ask for a password when there is none?
myuser
so there could really be only one password right?