Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh: handshake failed #2

Open
joshuacox opened this issue Jul 14, 2019 · 4 comments
Open

ssh: handshake failed #2

joshuacox opened this issue Jul 14, 2019 · 4 comments

Comments

@joshuacox
Copy link

After cp container-linux-config.yml.example container-linux-config.yml
and
make container-linux

I get:

==> qemu: Waiting for SSH to become available...
==> qemu: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [keyboard-interactive none password], no supported methods remain
==> qemu: Deleting output directory...
Build 'qemu' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [keyboard-interactive none password], no supported methods remain

==> Some builds didn't complete successfully and had errors:
--> qemu: ssh: handshake failed: ssh: unable to authenticate, attempted methods [keyboard-interactive none password], no supported methods remain

==> Builds finished but no artifacts were created.
make: *** [Makefile:15: builds/container-linux-stable.qcow2] Error 1

I also tried adding in keys to the config:

passwd:
  users:
    - name: core
      ssh_authorized_keys:
        - "ssh-ed25519 AAA...."

But I don't seem to be having any success? Am I missing something?

@dyson
Copy link
Owner

dyson commented Jul 14, 2019

Yeah you need to put your public key in there. Is that that key you put in there?

@joshuacox
Copy link
Author

joshuacox commented Jul 14, 2019

yep it sure is, I also tried with an rsa pub (just in case there was some issue with the ed25519 pub) as well (both of the private keys still reside in my .ssh dir). And I am currently logging into some container linux VMs that I created using another method. The other method works fine, but I was considering extending it using your packer build.

@dyson
Copy link
Owner

dyson commented Jul 14, 2019

Bummer. I'll have a go at running this again myself. Haven't used it since putting it up so maybe something has changed.

@msoranno
Copy link

msoranno commented Aug 5, 2019

hello guys, tested myself and same problem as @joshuacox

Does anyone is able to work with packer and coreos in anyway ?

thank guys

2019/08/05 10:15:52 packerio: 2019/08/05 10:15:52 [DEBUG] Detected authentication error. Increasing handshake attempts.
2019/08/05 10:15:52 ui error: ==> qemu: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
==> qemu: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2019/08/05 10:15:52 packerio: 2019/08/05 10:15:52 failed to unlock port lockfile: close tcp 127.0.0.1:5993: use of closed network connection
2019/08/05 10:15:52 packerio: 2019/08/05 10:15:52 failed to unlock port lockfile: close tcp 127.0.0.1:2411: use of closed network connection
==> qemu: Deleting output directory...
2019/08/05 10:15:52 [INFO] (telemetry) ending qemu
2019/08/05 10:15:52 ui error: Build 'qemu' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2019/08/05 10:15:52 machine readable: error-count []string{"1"}
2019/08/05 10:15:52 ui error: 
==> Some builds didn't complete successfully and had errors:
2019/08/05 10:15:52 machine readable: qemu,error []string{"ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain"}
2019/08/05 10:15:52 ui error: --> qemu: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
==> Builds finished but no artifacts were created.
2019/08/05 10:15:52 [INFO] (telemetry) Finalizing.
Build 'qemu' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain

==> Some builds didn't complete successfully and had errors:
--> qemu: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain

==> Builds finished but no artifacts were created.
2019/08/05 10:15:52 waiting for all plugin processes to complete...
2019/08/05 10:15:52 /usr/bin/packerio: plugin process exited
2019/08/05 10:15:52 /usr/bin/packerio: plugin process exited
2019/08/05 10:15:52 /usr/bin/packerio: plugin process exited
make: *** [builds/container-linux-stable.qcow2] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants