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@OTHER-INSTANCE

Hope that helps.

Regards,
      Neil

From: [email protected]
Sent: Thursday, 30 July 2015 05:24
To: [email protected]
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


_______________________________________________
OpenStack-operators mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to