Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

that's only hypothetical question, it hasn't happened to me (yet).

I want to configure secure ssh on my VPS. I'm going to use a public/private key pair (with passphrase) to authentication and I'm also going to set PasswordAuthentication to "no".

The question is: Would I be able to restore access to my VPS via SSH if I lost my private key?

On a desktop it rather wouldn't be a problem, but is it possible on any VPS accessible only via SSH?

share|improve this question
up vote 1 down vote accepted

If your VPS has a "out of band console" you will can log in the system like a local user.

Ask your provider for this facility.

share|improve this answer
I thought about this workaround and it seems to be the only possible way to achieve this (except for reinstalling vps' OS or at least submitting ticket to a VPS provider) – dominik Aug 8 '11 at 18:10
Or change the config file in the panel if you have a VPS+panel installation. You only need write /etc/sshd_config. – J.F. Aug 8 '11 at 19:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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