Ask Your Question
0

How to access instance without IP

asked 2016-04-20 07:50:57 -0600

Nenchy gravatar image

updated 2016-04-20 08:00:06 -0600

Hello,

I have one question regarding how to access instance in private network that doesn't use DHCP. So instance is created, it doesn't have IP address since DHCP in private network is disabled (I want to manually enter IP address to instance from that subnet later on). I could access instance through Console, but what if instance doesn't allow login with Password, but only with keys (like Fedora, Ubuntu, CentOS cloud images)?

What to do in that case?

Thank you, Nenchy

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-20 14:39:56 -0600

Bose gravatar image

Use cloud-init script in "Post Creation" tab during instance creation.

The example of cloudinit script to inject password on the default user is the follow:

#cloud-config
password: myVerySecretePassword
chpasswd: {expire: False}
ssh_pwauth: True

Default username for instance usually are "ubuntu" for ubuntu iso, "centos" for centos iso and so on

edit flag offensive delete link more

Comments

Great, great... Thank you for this response. Worked like charm...

Nenchy gravatar imageNenchy ( 2016-05-04 07:43:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-20 07:50:57 -0600

Seen: 117 times

Last updated: Apr 20 '16