0

In FIWARE Lab, I create a VM instance, keypair, etc as in the tutorial:

vm

Add port 22 to the security group rules:

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?

Maarten
  • 6,894
  • 7
  • 55
  • 90

3 Answers3

1

The first step is to configure the network inside fi-ware cloud website.
Then you should be able to assign a floating IP to the instance you are trying to connect. This will give you a public IP so you can access the VM from anywhere. The IP you wrote here is a local IP.
If you were able to assign a floating IP do this:

ssh -i yourKey.pem root@floatingIP
jccampos
  • 354
  • 3
  • 9
1

Keep in mind that the IP address that you are using (10.0.136.107) in a private one, you cannot access to that network from outside of the infrastructure.

If you want to access to any VM using SSH, you need to associate a public IP to the VM instance.

flopez
  • 620
  • 1
  • 4
  • 9
1

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

h.zak
  • 1,407
  • 5
  • 21
  • 40