In FIWARE Lab, I create a VM instance, keypair, etc as in the tutorial:
Add port 22 to the security group rules:
I follow the instructions to connect to ssh:
Open the Terminal
Locate the keypair asocciate to this Instance when launching it.
my_keypair.pem
Modify the keypair permissions in order to make it not publicly viewable.
chmod 400 my_keypair.pem
Connect to the Instance using its public IP.
ssh -i my_keypair.pem root@10.0.136.107
yet:
$ ssh -i nother-keypair.pem root@10.0.136.107
ssh: connect to host 10.0.136.107 port 22: Connection timed out
Why does this happen? What can I do about it?
you need to associate a public IP to the VM instance. to do that: compute->security->floating ip address->Allocate ip to project -> allocate ip-> associate ip->chose the instance-> associate. now you will be able to use ssh with your public ip address