Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Juan Francisco Cantero Hurtado Aug 8 '11 at 19:11
add comment

Your Answer

 
discard

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.