Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Authentication Error for ubuntu server when provisioning from AWS and chef

$
0
0

I am new to chef and ubuntu servers, I am trying to upgrade the Linux version from V16.04 to V24.04, when I update the cookbook version to pick image of 24.04 from AWS predefined images, I see it is successful (ami-01e444924a2233b07).

But when the image is used to add needed software's from chef, I see this error.

INFO: [SSH] connection failed, retrying in 1 seconds (#<Net::SSH::AuthenticationFailed: Authentication failed for user ubuntu@10.100.0.105>)

This is provisioned with knife bootstrap command with parameters of identity file path (the file is present), ssl and ssh verification has been set to none and never, but still, I see the error.

Note: with existing version of Ubuntu, I am able to provision n number of instances and when new base image is updated to 24.04 it fails.

The only change is from 14.04 version to 24.04 and this is a standalone instance.

Any ideas/ solutions to upgrade versions.

What I have tried:

  1. Checked with trace logs, and I see it is prompting password and as ubuntu user, gave most of the default passwords, no success.
  2. As the password is being decrypted from .pem file, validated the pem file by logging to existing instance and it is valid.
  3. tried to connect to half-provisioned image/ instance locally and it prompted me to add key, after giving yes, it failed with message of "man-in-middle-attack" message, deleted my existing .ssh folder and added it and I am able to login.

Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>