|
I am trying to learn more in how to best secure my Linode and I have a couple of questions for which I was hoping someone here might be able to offer any tips.
In my /etc/ssh/sshd_config file (which I will post here if it may help):
I've changed my SSH port from the default of 22 to another higher one and believe I have also correctly disabled root access, turned off password authentication , disabled PAM and enabled RSAAuthentication yes , PubkeyAuthentication yes however do still have the uncommented line of #AuthorizedKeysFile %h/.ssh/authorized_keys
So I also believe I am correctly using my keys which I installed not as root, but in my user account, placing my public key in my user account folder /home/useraccount/.ssh/authorized_keys
I believe the keys are setup properly, in that when I attempt to login using Putty without Pageant, it first prompts me for a user name but then I get an error Disconnected: No supported authentication methods available (server sent :publickey)
So I assume this means it is asking for my private key, because when I do then enable Pageant and use my key, I then am able to login just fine and putty says it recognizes my key.
However my issue is that in reviewing my Logwatch :
under the pam_unix sshd:
I still see Authentication Failures usually for root:
SSHD Failed logins from:
and Illegal users from:
Does this therefore mean that in fact perhaps I actually DO NOT have password authentication turned off correctly and entirely or properly disabled root access?
Or that my keys are not fully implemented properly despite being apparently recognized?
Also then my second question from Logwatch,
I have begun to see occasional failed login, dictionary type mail attacks attempts under POP-3 **Unmatched Entries** LOGIN FAILED
I only am using mail on my Linode to send me my Logwatch report.
Could I possibly somehow purge entirely perhaps any unneeded potential mail vulnerabilities and still be able to receive my Logwatch report?
Thank you very much, if anyone could please offer any tips I really appreciate it.
|