I recently needed to restart a Xen host box, and now I can no longer ssh into the VMs. I was able to before, but now I get Permission denied (publickey).

I am not too experienced with Xen, is there a reason it would have removed or overwritten the keys on the VMs when I restarted? How can I get the keys back onto the machines? Can I log into the machines from the host box directly?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

You can attach on console and reset your keys with xm console <id>.

As to your other question, it might be a service you have set to run on boot (of the VMs). You should look through /etc/init.d for anything suspicious. Also check /var/log/messages to find any helpful hints.

To get the keys back onto the machine scp them over from the host.

link|improve this answer
I get a xm: command not found. This is a machine I inherited responsibility for. Any reason xm wouldn't be installed? – mvid Jul 25 '11 at 18:33
@mvid it's the standard tool for managing Xen VMs. ensure you're a privileged user, and install the appropriate package (xen-tools for some distros) if it isn't installed – Michael Lowman Jul 25 '11 at 20:21
feedback

Your Answer

 
or
required, but never shown

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