jeffreywildman / homebrew-virt-manager

A set of homebrew formulae to install virt-manager and virt-viewer on MAC OSX
1k stars 266 forks source link

Unable to connect to different port #106

Closed dgomez closed 5 years ago

dgomez commented 5 years ago

It's possible to connect to a remote host via qemu+ssh using a different port for SSH than default 22?

RocKordier commented 5 years ago

Hey, of course its possible! Simply define a host config in ~ /.ssh /config and use the shortcut when connecting through virt-manager

virt-manager -c "qemu+ssh://server/system?socket=/var/run/libvirt/libvirt-sock"

Host server
    Hostname 8.8.8.8
    User remoteuser
    Port 2323

Eric

dgomez commented 5 years ago

Great! Thanks!