Skip to content

[BUG] EC2 SSH connectivity failure #3356

Description

@Ayush0604-alt

Service

EC2

AWS API Action

CreateKeyPair

Expected behavior

The Floci EC2 API should successfully create an EC2 key pair and return the key-pair details/private key material as expected from the corresponding AWS API.

Actual behavior

When I try to create an EC2 key pair through the Floci UI, it fails with:

Unexpected error: null [/api/ec2/key-pairs]

The SSH service itself is reachable on port 2200. Running:

ssh -v -p 2200 root@localhost

successfully establishes the connection and reaches the authentication stage:

debug1: Connecting to localhost [::1] port 2200.
debug1: Connection established.
...
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.13
...
Authentications that can continue: publickey,password
...
root@localhost's password:

Reproduction

  1. Open the Floci UI.
  2. Navigate to the EC2 key-pair section.
  3. Select Create Key Pair.
  4. Enter a key-pair name.
  5. Submit the form.
  6. The following error is displayed:
Unexpected error: null [/api/ec2/key-pairs]

Environment

  • Floci version / image tag: [please add your version/image tag]
  • Java SDK version (if applicable): [please add if applicable]
  • How you're running Floci (Docker / native / mvn quarkus:dev): [please add]
  • OS: Windows
  • SSH port: 2200

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingec2Amazon Elastic Compute Cloud (EC2)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions