You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run vagrant up. Notice that port 8080 is not forwarded. Read the log in .vagrant/machines/default/libvirt/logs/ssh-forwarding-\*_8080-192.168.121.250_8080.log. It will say something similar to:
zsh:1: command not found: ssh 'localhost' -W 192.168.121.250:22
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
Expected behavior
Port 8080 is forwarded.
Versions (please complete the following information)::
The text was updated successfully, but these errors were encountered:
stygian-coffee
changed the title
Port-forwarding with SSH ProxyCommand fails "exec ssh ... not found"
Port-forwarding with SSH ProxyCommand fails with "exec ssh ... not found"
Apr 26, 2024
Describe the bug
If using a Libvirt daemon on a remote host and attempting to forward ports, port forwarding fails.
I think that this is related to
vagrant-libvirt/lib/vagrant-libvirt/action/forward_ports.rb
Line 113 in a94ce0d
Namely, I think that
"ProxyCommand=\"#{ssh_info[:proxy_command]}\""
should be changed to"ProxyCommand=#{ssh_info[:proxy_command]}"
I think that this bug was introduced in 55a220f.
To Reproduce
Set up an SSH server so that you can SSH to
localhost
.Use the following Vagrantfile:
Run
vagrant up
. Notice that port 8080 is not forwarded. Read the log in.vagrant/machines/default/libvirt/logs/ssh-forwarding-\*_8080-192.168.121.250_8080.log
. It will say something similar to:Expected behavior
Port 8080 is forwarded.
Versions (please complete the following information)::
vagrant-libvirt (0.12.2, system)
Debug Log
Attach Output of
VAGRANT_LOG=debug vagrant ... --provider=libvirt >vagrant.log 2>&1
vagrant.log
The text was updated successfully, but these errors were encountered: