While installing Ubuntu I just gave same password whenever it asked for password, and I didn't bothered to see whether root password or user password. Now I have only one user account on my system so I didn't have to bother about types of passwords in any way.
But for some reason I shared the password with friends in the same LAN. Now they are able to establish SSH connection without my consent.
So I just thought of changing the password thinking changing password at single place so that I can use the system in the same way with the new password. But as I looked for it I came to know I can change password individually for Root and the User.
So my doubts are:
- Do I have to change the password separately for both
rootandusereven if I use same password? - If I use different passwords, when exactly I use the user password? only for user login?
- Which password should I change to avoid SSH connections from others?