vagrant upload should choose the privatekey method even when keyboard-interactive is present (as it did in 2.3.4). A password prompt should not appear.
Actual behavior
I'm prompted for a password in the midst of the upload. The publickey method should have been chosen, rather than keyboard-interactive. In 2.3.4 this is what happens, but in 2.3.6 keyboard-interactive is chosen and I'm prompted for the box password.
Reproduction information
Vagrant version
artlogic@atticus agent % vagrant -v
Vagrant 2.3.6
Host operating system
macOS 12.6.5.
Guest operating system
Ubuntu (hashicorp/bionic64)
Steps to reproduce
vagrant init hashicorp/bionic64
vagrant up
touch test
vagrant upload test test (no password prompt, works as expected)
Enable keyboard-interactive
vagrant ssh
sudo nano /etc/ssh/sshd-config
Scroll to the line that says ChallengeResponseAuthentication no. Change it to yes and save.
sudo systemctl restart sshd
exit
vagrant upload test test you are now prompted for a password. This was not the behavior in 2.3.4 and prior.
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/bionic64"
end
Debug output
https://gist.github.com/artlogic/32fbbf901c1e96b7c7be5e1819e12876
Expected behavior
vagrant upload
should choose theprivatekey
method even whenkeyboard-interactive
is present (as it did in 2.3.4). A password prompt should not appear.Actual behavior
I'm prompted for a password in the midst of the upload. The
publickey
method should have been chosen, rather thankeyboard-interactive
. In 2.3.4 this is what happens, but in 2.3.6 keyboard-interactive is chosen and I'm prompted for the box password.Reproduction information
Vagrant version
Host operating system
macOS 12.6.5.
Guest operating system
Ubuntu (hashicorp/bionic64)
Steps to reproduce
vagrant init hashicorp/bionic64
vagrant up
touch test
vagrant upload test test
(no password prompt, works as expected)vagrant ssh
sudo nano /etc/ssh/sshd-config
ChallengeResponseAuthentication no
. Change it toyes
and save.sudo systemctl restart sshd
exit
vagrant upload test test
you are now prompted for a password. This was not the behavior in 2.3.4 and prior.Vagrantfile