[Fiware-lab-help] [FIWARE-JIRA] (HELP-8172) Keypair issue

Help-Desk jira-help-desk at jira.fiware.org
Thu Jan 26 11:18:00 CET 2017



>From FIWARE JIRA - Main Help Desk ----

-------------------------------------------------------------------------------
Comments:


FW External User - Today 11:17 AM
------------------
Comment by ebosques at lst.tfo.upm.es : 

Thanks!

I have already seen the link to download the PEM file.

In relation with your comment: 

“ Anyway, May I ask you the link of the tutorial you've followed? --- You don't have any instance created yet, you don't have any Floating IPs created yet... It seems like you've just tried to follow just the very last step of the proccess. “

I’ve just followed the next tutorials: 

This video tutorial is in the section Help&info 

FIWARE Cloud Blueprint templates:
https://youtu.be/MdZS_0jt6Vo <https://youtu.be/MdZS_0jt6Vo>


The second tutorial is from your YouTube’s channel :  

FIWARE Cloud Instances:
https://www.youtube.com/watch?v=mb7CdMnZh7Q <https://www.youtube.com/watch?v=mb7CdMnZh7Q>


I’ve created the group, the key, the instance and the floating IP, following the tutorials that I comment you above.

Today I’m going to test the connection to the VM, so maybe I’ll be writing you for help.

Thanks!


Best,
Emir.





> On 25 Jan 2017, at 12:18, José Ignacio Carretero <joseignacio.carretero at fiware.org> wrote:
> 
> Hi,
> 
> You need a private key in order to connect to your VMs. You have 2 options:
> 
> 1. Create the Keypair (private + public key) in your own host and UPLOAD the public key to fiware Cloud Portal.
> 2. Create a Keypair in FIWare Cloud Portal, and DOWNLOAD the private key 
> --- We NEVER EVER keep your Private Key. If you loose it, then nothing can be done in order to get it back again. It is your responsibility to keep that file safe. Thus, we can't provide you any link to your Private Key.
> 
> However, if you choose Option 2 In cloud Portal (Security --> Keypairs  --> Create Keypair), After creating a new keypair, you can see a "Download Keypair" link where you can click in order to download the Private Key. That is the file you should have had downloaded and which must have a name "KeyNolb.pem" in your case. But It seems you are trying to use a file you don't have, so It can't be found.
> 
> Please, create a new Keypair, download the Private Key and do as you are doing with "KeyNolb.pem".
> 
> Best regards,
> José Ignacio
> El 25/01/17 a las 10:42, ebosques escribió:
>> Hi.
>> 
>> I followed the tutorial to connect trough SSH to the VM but I got this error:
>> 
>> Permission denied (publickey).
>> Emirs-MacBook-Pro:~ ebosques$ chmod 400 KeyNolb.pem
>> chmod: KeyNolb.pem: No such file or directory
>> Emirs-MacBook-Pro:~ ebosques$ ssh -i KeyNolb.pem  <mailto:ubuntu at 130.206.122.238>ubuntu at 130.206.122.238 <mailto:ubuntu at 130.206.122.238>
>> Warning: Identity file KeyNolb.pem not accessible: No such file or directory.
>> ##################################################################################
>> NOTE: You have accessed a system owned by FIWARE Lab. You must have authorisation
>> before using it, and your use will be strictly limited to that indicated in the
>> authorisation.
>> Unauthorised access to this system or improper use of the same is prohibited and 
>> is against the FIWARE Terms & Conditions Policy and the legislation in force. The
>> use of this system may be monitored.
>> #################################################################################
>> 
>> 
>> In the tutorial the man show an option to download the KEYPAIR. But When I created my KEYPAIR the FIWARE page does not show me any link to download the KEYPAIR file. So when I going to give the permission, suggested by the “Connection’s Tab” in the INSTANCES’ menu:
>> 
>> 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 and the appropiate username depending on the VM SO (ubuntu, centos, ...).
>> ssh -i my_keypair.pem user_name at 130.206.122.238 <mailto:user_name at 130.206.122.238>
>> 
>> I do not know where is located the .pem file, in my case will be KeyNolb.pem, because I have not downloaded, because I do not see any link in the security menu to let me do this action.
>> 
>> So the question is: how could I download the file? or there is any other method to give the permission to the KEYPAIR file to establish the SSH connection? 
>> 
>> Best regards and thanks for help with my issue!
>> 
>> 
>> Emir Bosques
>> Life Supporting Technologies
>> Departamento deTecnología Fotónica y Bioingeniería
>> E.T.S.I. Telecomunicacion. B303.1
>> Universidad Politecnica de Madrid 
>> Avenida Complutense nº 30, Ciudad Universitaria
>> 28040 Madrid
>>  <mailto:gloria at lst.tfo.upm.es>ebosques at lst.tfo.upm.es <mailto:ebosques at lst.tfo.upm.es>
>> Tel: (+34) 91 549 57 00 – ext. 8015
>> Fax: (+34) 91 336 73 19
>> 
>> 
>> <Mail Attachment.jpeg>
>> 
>> 
>> 
>>




José Ignacio Carretero Guarde - Yesterday 12:53 PM
------------------
Anyway, May I ask you the link of the tutorial you've followed? --- You don't have any instance created yet, you don't have any Floating IPs created yet... It seems like you've just tried to follow just the very last step of the proccess.


FW External User - Yesterday 12:23 PM
------------------
Comment by joseignacio.carretero at fiware.org : 

Hi,

You need a private key in order to connect to your VMs. You have 2 options:

1. Create the Keypair (private + public key) in your own host and UPLOAD 
the public key to fiware Cloud Portal.

2. Create a Keypair in FIWare Cloud Portal, and DOWNLOAD the private key

--- We NEVER EVER keep your Private Key. If you loose it, then nothing 
can be done in order to get it back again. It is your responsibility to 
keep that file safe. Thus, we can't provide you any link to your Private 
Key.

However, if you choose Option 2 In cloud Portal (Security --> Keypairs  
--> Create Keypair), After creating a new keypair, you can see a 
"Download Keypair" link where you can click in order to download the 
Private Key. That is the file you should have had downloaded and which 
must have a name "KeyNolb.pem" in your case. But It seems you are trying 
to use a file you don't have, so It can't be found.

Please, create a new Keypair, download the Private Key and do as you are 
doing with "KeyNolb.pem".

Best regards,
José Ignacio

El 25/01/17 a las 10:42, ebosques escribió:
> Hi.
>
> I followed the tutorial to connect trough SSH to the VM but I got this 
> error:
>
> Permission denied (publickey).
> Emirs-MacBook-Pro:~ ebosques$ chmod 400 KeyNolb.pem
> chmod: KeyNolb.pem: No such file or directory
> Emirs-MacBook-Pro:~ ebosques$ ssh -i KeyNolb.pem 
> ubuntu at 130.206.122.238 <mailto:ubuntu at 130.206.122.238>
> Warning: Identity file KeyNolb.pem not accessible: No such file or 
> directory.
> ##################################################################################
> NOTE: You have accessed a system owned by FIWARE Lab. You must have 
> authorisation
> before using it, and your use will be strictly limited to that 
> indicated in the
> authorisation.
> Unauthorised access to this system or improper use of the same is 
> prohibited and
> is against the FIWARE Terms & Conditions Policy and the legislation in 
> force. The
> use of this system may be monitored.
> #################################################################################
>
>
> In the tutorial the man show an option to download the KEYPAIR. But 
> When I created my KEYPAIR the FIWARE page does not show me any link to 
> download the KEYPAIR file. So when I going to give the permission, 
> suggested by the “Connection’s Tab” in the INSTANCES’ menu:
>
>  1. Open the Terminal
>  2. Locate the keypair asocciate to this Instance when launching it.
>
>     /my_keypair.pem/
>
>  3. Modify the keypair permissions in order to make it not publicly
>     viewable.
>
>     /chmod 400 my_keypair.pem/
>
>  4. Connect to the Instance using its public IP and the appropiate
>     username depending on the VM SO (ubuntu, centos, ...).
>
>     /ssh -i my_keypair.pem user_name at 130.206.122.238
>     <mailto:user_name at 130.206.122.238>/
>
>
>     I do not know where is located the *.pem* file, in my case will be
>     *KeyNolb.pem*, because I have not downloaded, because I do not see
>     any link in the security menu to let me do this action.
>
>     So the question is: how could I download the file? or there is any
>     other method to give the permission to the KEYPAIR file to
>     establish the SSH connection?
>
>     Best regards and thanks for help with my issue!
>
>
> Emir Bosques
> Life Supporting Technologies
> Departamento deTecnología Fotónica y Bioingeniería
> E.T.S.I. Telecomunicacion. B303.1
> Universidad Politecnica de Madrid
> Avenida Complutense nº 30, Ciudad Universitaria
> 28040 Madrid
> ebosques at lst.tfo.upm.es <mailto:gloria at lst.tfo.upm.es>
> Tel: (+34) 91 549 57 00 – ext. 8015
> Fax: (+34) 91 336 73 19
>
>
>
>
>
>



------------------------
Issue id: HELP-8172
Description:
Hi.

I followed the tutorial to connect trough SSH to the VM but I got this error:

Permission denied (publickey).
Emirs-MacBook-Pro:~ ebosques$ chmod 400 KeyNolb.pem
chmod: KeyNolb.pem: No such file or directory
Emirs-MacBook-Pro:~ ebosques$ ssh -i KeyNolb.pem ubuntu at 130.206.122.238 <mailto:ubuntu at 130.206.122.238>
Warning: Identity file KeyNolb.pem not accessible: No such file or directory.
##################################################################################
NOTE: You have accessed a system owned by FIWARE Lab. You must have authorisation
before using it, and your use will be strictly limited to that indicated in the
authorisation.
Unauthorised access to this system or improper use of the same is prohibited and 
is against the FIWARE Terms & Conditions Policy and the legislation in force. The
use of this system may be monitored.
#################################################################################


In the tutorial the man show an option to download the KEYPAIR. But When I created my KEYPAIR the FIWARE page does not show me any link to download the KEYPAIR file. So when I going to give the permission, suggested by the “Connection’s Tab” in the INSTANCES’ menu:

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 and the appropiate username depending on the VM SO (ubuntu, centos, ...).
ssh -i my_keypair.pem user_name at 130.206.122.238



I do not know where is located the .pem file, in my case will be KeyNolb.pem, because I have not downloaded, because I do not see any link in the security menu to let me do this action.

So the question is: how could I download the file? or there is any other method to give the permission to the KEYPAIR file to establish the SSH connection? 

Best regards and thanks for help with my issue!


Emir Bosques
Life Supporting Technologies
Departamento deTecnología Fotónica y Bioingeniería
E.T.S.I. Telecomunicacion. B303.1
Universidad Politecnica de Madrid 
Avenida Complutense nº 30, Ciudad Universitaria
28040 Madrid
ebosques at lst.tfo.upm.es <mailto:gloria at lst.tfo.upm.es>
Tel: (+34) 91 549 57 00 – ext. 8015
Fax: (+34) 91 336 73 19





__________________________________________________________________________________________

You can get more information about our cookies and privacy policies on the following links:
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE

Fiware-lab-help mailing list
Fiware-lab-help at lists.fiware.org
https://lists.fiware.org/listinfo/fiware-lab-help


[Created via e-mail received from: ebosques <ebosques at lst.tfo.upm.es>]

FIWARE Chapter: 
FIWARE GEri: 

Status: Open 

---------------------
This email was generated by FIWARE JIRA following an email received into the Main Help Desk.


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy