[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] port 22 patch



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 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 redhat com
> https://www.redhat.com/mailman/listinfo/virt-tools-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]