Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4190

FIWARE.Request.Lab.Cannot connect via ssh to the public IP address.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:
      None

      Description

      Hello,

      I'm configuring a VM to be exposed via public IP 10.1.64.60, I can seeby
      the instances dashboard that the IP is allocated to the VM. I'veadded
      the security group the rule to allow: TCP 22 220.0.0.0/0 (CIDR) and ICMP
      8 0 0.0.0.0/0 (CIDR). One thing that I would like to note is that the
      value -1 is not accepted when configuring the security group for ping.

      When I try to use SSH i got the following:

      ssh -i pair.pem root@10.1.64.60
      ssh: connect to host 10.1.64.60 port 22: Connection timed out

      using ping I got no response.

      Any ideas ?

      I'm using Spain node

      Tenant id: 00000000000000000000000000011056

      Thanks,
      Hélio

      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help-new
      [Created via e-mail received from: =?UTF-8?Q?H=c3=a9lio_Silva?= <heliodiassilva@gmail.com>]

        Activity

        Hide
        marcocipriani Marco Cipriani added a comment -

        Dear Hélio,
        for reaching a VM via SSH (Internet access), you have to allocate a public IP to your Project (from Security -> Floating IP) and then associate the IP to your VM. Instead you are using a private IP (10.1.64.60).
        Your security rules seem to be right, however for allowing all ICMP packets you can use ICMP 0 0 0.0.0.0/0 (CIDR), instead of -1 .

        Best regards
        Marco

        Show
        marcocipriani Marco Cipriani added a comment - Dear Hélio, for reaching a VM via SSH (Internet access), you have to allocate a public IP to your Project (from Security -> Floating IP) and then associate the IP to your VM. Instead you are using a private IP (10.1.64.60). Your security rules seem to be right, however for allowing all ICMP packets you can use ICMP 0 0 0.0.0.0/0 (CIDR), instead of -1 . Best regards Marco
        Hide
        fw.ext.user FW External User added a comment -

        It works beautifully! Thank you!
        Anyway how can I define the root password ?

        Thanks!

        Show
        fw.ext.user FW External User added a comment - It works beautifully! Thank you! Anyway how can I define the root password ? Thanks!
        Hide
        marcocipriani Marco Cipriani added a comment -

        Dear Hélio,
        for security reasons, the direct logon as root is deprecated.
        You can get access as root with the command "sudo su" (CentOS and Ubuntu).
        However you can set the root password with:

        • sudo su
        • passwd

        Best regards
        Marco

        Show
        marcocipriani Marco Cipriani added a comment - Dear Hélio, for security reasons, the direct logon as root is deprecated. You can get access as root with the command "sudo su" (CentOS and Ubuntu). However you can set the root password with: sudo su passwd Best regards Marco
        Hide
        fw.ext.user FW External User added a comment -

        Dear Marco,

        Thanks!

        BR

        Show
        fw.ext.user FW External User added a comment - Dear Marco, Thanks! BR

          People

          • Assignee:
            marcocipriani Marco Cipriani
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: