SSH from Linux works but Putty from Windows fails – Go Figure…well I did!

A quick discovery of mine today – a colleague needed to ssh directly onto the overcloud from a system other than the seed vm or undercloud nodes. Those in the know would quickly say “simples” – just copy the private key from the undercloud server /root/.ssh/id_rsa to the ssh client and login using the heat-admin user along with this key.

I tried this quickly on my windows laptop with Putty.exe and got the following error – “Unable to use key file…”

OCsshFail

 Switch over to Linux and the problem disappears –

OCsshUnixSuccess

 

It turns out that Putty requires a proprietary certificate and does not accept a standard OpenSSH key.

The fix is quick and easy though – so long as you trust Puttygen.exe. Run this application and then select “Load an existing private key  file” button and select the id_rsa file downloaded from the undercloud. Once imported save the ‘new’ puttified key.

PuttyGen

 

Use this new key file with Putty.exe on windows and now you should be able to login to the overcloud remotely –

OCsshSuccess

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s