I have user access to a server which enables SSH access through passwords. However, I want to disable that access for my own user and only connect through a RSA key. I don't have root access to the server. Is there a way to achieve this?

Thank you, R.

  • 1
    While you can't delete your own password to disable password based logins, and you can't edit the sshd_config file to disable password authentication for yourself, you could create a massively long password for yourself if you can't manage to get this disabled. I'm assuming security is your motivator when stating this. – Spooler Oct 4 '16 at 8:13
  • Yes, you're right, it might be an idea. Thanks! – rhobincu Oct 4 '16 at 9:04

No you can't. You can request the administrator to disable password based logins for your specific account though by having them set in the /etc/ssh/sshd_config:

Match user rhobincu
   PasswordAuthentication no
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.