Skip to content

Using API's created instances gives error Permission denied (publickey) under the VPC network #6765

@satishglondhe

Description

@satishglondhe
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API, VPC, SSH
CLOUDSTACK VERSION
4.16.0, 4.17.0.1 
CONFIGURATION

Advanced Networking - VPC

OS / ENVIRONMENT

N/A

SUMMARY

Not able to access the VM using the SSH keypair attached at the time of instance creation with VPC network using API's. If we reinstall such instance then it starts working. Also if we do this with the Cloud Stack UI it is working as expected in the first attempt.

STEPS TO REPRODUCE
Steps followed using APIs:
1. Create project
2. Create VPC network
3. Register SSH key pair
4. Create new instance
5. Attach this instance to the VPC network
6. Acquire and associate public ip address to the VPC network and static nat with the instance
7. Try to access this instance using public ip and ssh key
Everything working fine, We can see the registered ssh key pair in the Cloud Stack UI under the instance details. But at the time of logging in using ssh it gives error  **Permission denied (publickey).**

EXPECTED RESULTS

SSH login should work in the first attempt if instance created under the VPC network using API's

ACTUAL RESULTS

Permission denied (publickey)

ssh ubuntu@ip_address

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions