[Openstack-operators] ssh inside instance

Neil Jerram Neil.Jerram at metaswitch.com
Thu Jul 30 08:08:27 UTC 2015


Hi Aishwarya,

The basic requirement here is that anyone - which really means a combination of a computer or instance, plus a user on that computer/instance - needs to have the private key that matches the public key that is installed on the target instance.

You've asked about logging in from your first instance ‎- let's call it A - so you need to save the private key in a file on A - let's call it private_key - and give it 600 permissions:

    chmod 600 private_key

Then you can use this key with SSH like this:

    ssh -i private_key USER at OTHER-INSTANCE

Hope that helps.

Regards,
      Neil

From: aishwarya.adyanthaya at accenture.com
Sent: Thursday, 30 July 2015 05:24
To: openstack-operators at lists.openstack.org
Subject: [Openstack-operators] ssh inside instance


Hi,

I’ve launched two instances from my openstack dashboard. Firstly I created instance one, where I generated a key through the ssh-keygen command, pasting the public key contents to import key in the access and security. Using this key I launched second instance.

I want to be able to ssh the second instance from my first instance. Could someone tell me how to work it out?

Thank you,
Aishwarya Adyanthaya

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150730/8b4fbadc/attachment.html>


More information about the OpenStack-operators mailing list