[virt-tools-list] port 22 patch

Cole Robinson crobinso at redhat.com
Mon Mar 15 15:20:23 UTC 2010


On 03/11/2010 06:35 PM, Mateusz Adamowski wrote:
> When connecting to VM's console VMM is using SSH tunnel to attach to
> VNC socket on remote machine. When no tcp port is given, the
> connection is invoked using unnecessary -p 22 parameter.
> 
> This fails when different port is defined in .ssh/config!!!
> 

Thanks for the patch, but this is already fixed upstream, and available
in virt-manager 0.8.1 and later:

http://hg.fedorahosted.org/hg/virt-manager/rev/f714530aff4f

Thanks,
Cole

> Here is little patch by me:
> 
> (This code is public domain)
> 
> root at flame:/usr/share/virt-manager/virtManager# diff details.py.orig details.py
> 1229,1231c1229,1230
> <             if not server.count(":"):
> <                 sshport = "22"
> <             else:
> ---
>>             argv = ["ssh", "ssh" ]
>>             if server.count(":"):
> 1233c1232
> <             argv = ["ssh", "ssh", "-p", sshport]
> ---
>>                 argv += [ "-p", sshport]
> 
> 
> PS. Please CC: me when replying - I'm not subscribed to this list.
> 
> 
> --
>                                   Mateusz Adamowski
>                                   <http://www.mateusz.adamowski.pl/>
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list




More information about the virt-tools-list mailing list