1) Horizon->Compute->Key Pairs->Import Key Pair
2) Go to terminal and enter:
ssh-keygen -t rsa -f embasycloudkey.pem
cat embasycloudkey.pem.pub (and copy and paste in Horizon in field Public Key)
3) Give name to key (for example: embassycloudkey)
4) Click on Import Key
# Create new instance:
1) Go to Compute-> Instances->Launch Instance
2) Fill Instance Name: 'test' and Click on Next
3) Select Boot Source-> Image
4) Click on Cirros (a small size image) and Next
5) Select 's1.tiny'
6) Select Security Group and select a Security Group with the Ingress set (say we name it SSH-ing)
7) Wait until the Instance is running and then Click on Actions-> Associate Floating IP-> Associate
8) Go to terminal and enter:
ssh-add embasycloudkey.pem
9) Go to Horizon->Network->Security Group->SSH-ing-> Click on 'Manage Rules'->'Add Rule'
10) New rule can be:
Custom TCP Rule
Ingress
Port will be :22
CIDR: 0.0.0.0/0 (this will allow SSH access from all IPs)
11) Finally go to terminal and:
ssh cirros@193.62.55.155 (where 193.62.55.155 is the floating IP that you have associated)
##########
2nd way (recommended in EBI user guide):
1. Horizon->Compute->Key Pairs->Create Key Pair
2. Give KeyPair name: ubuntukey and click on Create (private key will be downloaded)
This private key is vital, let’s change permissions to prevent attacks:
3. chmod 600 ubuntukey.pem
4. Horizon->Network->Security Groups->Click on one of the security groups and then Add rule:
5. Fill: Rule->SSH ; CDIR: 0.0.0.0/0
6. Add another rule:
1. Fill: Rule->ALL ICMP->Add
7. Horizon->Compute->Instances->Launch instance
1. Fill: Instance Name-> ubuntu->Next
2. Select Boot Source-> Image
1. Create New Volume-> No
2. Click on Ubuntu Image-> Next
3. Flavor-> Click on s1.small->Next
4. Security Group-> Select the desired Security Group and Deselect Default-> Next
5. Click on Key Pair and select the desired Key Pair-> Launch Instance
8. Horizon->Compute->Instances->Actions->Associate Floating IP
9. SSH:
1. Terminal: ssh -i ubuntukey.pem -l ubuntu 193.62.55.155
1. If you get a message like the following one:
1. Offending ECDSA key in /Users/ernesto/.ssh/known_hosts:8
1. Then go to /Users/ernesto/.ssh/known_hosts and delete line 8 and do ssh again