I’m having a problem logging in to my VPS using my main user. For now, I have to use root first every time and then change to the ‘patrick’ username.
I want my access to be more secure by only allowing specific users to access SSH and keeping root hidden.
But each time I SSH using ‘patrick’, this error appears: Permission denied (publickey, gssapi-keyex, gssapi-with-mic).
I already copied root’s authorized_keys to /home/patrick/.ssh/authorized_keys, but still nothing. My user is already added to the wheel group. I also added ‘AllowUsers root patrick’ to sshd_config.