hashicorp / hashicorp/packer

Wait for successful ssh login, not just ssh available

Open
#11,691 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
15.8k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

#### Description

Rather than just waiting for the SSH server to be available, it would be better to allow it to be available but wait until the login is successful.

#### Use Case(s)

I want my installation environment (i.e. Anaconda/kickstart with EL) to enable ssh during it's execution so that issues with it can be debugged. Packer currently sees this ssh as meaning the install is complete however it's not of course. Packer fails to authenticate to that ssh instance though, so continuing to wait for an ssh authentication that is successful would allow for this use-case.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating Packer's SSH readiness and authentication flow, then trace where an available SSH server is treated as ready. Done means provisioning continues only after login succeeds, with tests covering a server that accepts connections but rejects authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.