FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 05-20-2008, 02:31 PM
Cole Robinson
 
Default PATCH: Support nonstandard ssh-port for tunnels

ClaesBas wrote:
> If you have ssh moved/hidden somewhere else then port 22 this patch
> makes it possible to open the vnc/console.
> I have to add the entry from commandline like this:
> virt-manager -c qemu+ssh://username@some_machine:22222/system
> If ssh is running on port 22222.
>
> I've also submitet this on bugzilla:
> https://bugzilla.redhat.com/show_bug.cgi?id=447070
> and by mistake to libvir-list (sorry).
>
> Regards
> Claes
>
> --- a/src/virtManager/details.py Tue May 13 15:59:25 2008 -0400
> +++ b/src/virtManager/details.py Sun May 18 23:07:37 2008 +0200
> @@ -975,7 +975,11 @@ class vmmDetails(gobject.GObject):
> os.close(1)
> os.dup(fds[1].fileno())
> os.dup(fds[1].fileno())
> - argv = ["ssh", "ssh", "-p", "22"]
> + if not server.count(":"):
> + sshport = 22
> + else:
> + (server, sshport) = server.split(":")
> + argv = ["ssh", "ssh", "-p", sshport]
> if username:
> argv += ['-l', username]
> argv += [ server, "nc", vncaddr, str(vncport) ]
>

Thanks, I've committed this.

http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=57ff06da8a73

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 07:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org