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

Hyper-V: Permission denied on vagrant ssh #13472

Open
LKHN opened this issue Jul 2, 2024 · 0 comments
Open

Hyper-V: Permission denied on vagrant ssh #13472

LKHN opened this issue Jul 2, 2024 · 0 comments

Comments

@LKHN
Copy link

LKHN commented Jul 2, 2024

While building and testing official vagrant boxes of AlmaLinux OS, stumbled upon with a password prompt as a result of vagrant ssh command. Which means the publickey based SSH authentication is not working.

The problem seems similar with #13309 but provider is different and some replies says the latest version (2.4.1) carries the necessary fixed already. I thought maybe it is provider specific issue and deserves to be reported as a separate issue.

Let me know whether you also can reproduce the issue, if not I can provider outputs with debugging enabled. Here some information about how I get OpenSSH and Vagrant installed:

winget install Microsoft.OpenSSH.Beta
winget install Hashicorp.Vagrant

Using PowerShell Core as terminal.

Debug output

vagrant@192.0.2.2: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Putting here, as my next move if debug level of output is needed.

  • vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant_up_debug.log"
  • vagrant ssh --debug 2>&1 | Tee-Object -FilePath ".\vagrant_ssh_debug.log"

Expected behavior

Log in the vagrant VM.

Actual behavior

vagrant@192.0.2.2: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Reproduction information

Vagrant version

Vagrant 2.4.1

Host operating system

Windows Server 2022 Datacenter

Guest operating system

  • AlmaLinux OS 9
  • AlmaLinux OS 8
  • CentOS Stream 9

Steps to reproduce

  1. vagrant init almalinux/9 or vagrant init almalinux/8 or vagrant init generic/centos9s
  2. vagrant up
  3. vagrant ssh

Vagrantfile

Generated by the vagrant init command.

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

No branches or pull requests

1 participant