{"thread":{"id":"14287","subject":"can't push to ransom ssh port ?","startedAt":"2008-07-04T13:28:59Z","lastAt":"2008-07-04T13:55:17Z","messageCount":6,"participants":["Neshama Parhoti","Denis Bueno","Johannes Schindelin","Vaclav Hanzl"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"82225","messageId":"912ec82a0807040628k14c8acd1ree9d82b68f69e080@mail.gmail.com","threadId":"14287","inReplyTo":null,"subject":"can't push to ransom ssh port ?","fromName":"Neshama Parhoti","fromEmail":"pneshama@gmail.com","sentAt":"2008-07-04T13:28:59Z","receivedAt":"2008-07-04T13:28:59Z","isPatch":false,"sender":{"key":"pneshama@gmail.com","avatar":null},"body":"Hi all,\n\nDoing the following:\n\ngit push myuser@myip:~/gitrepo\n\nConnects to ssh port 22 on myip.\n\nIs there a way to tell git to connect to a random port X ?\n\n(something like ssh's -p parameter)\n\nI can't find how and I really need that..\n\nThank you!\npnesh\n"},{"id":"82227","messageId":"alpine.DEB.1.00.0807041432060.9925@racer","threadId":"14287","inReplyTo":"912ec82a0807040628k14c8acd1ree9d82b68f69e080@mail.gmail.com","subject":"Re: can't push to ransom ssh port ?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-07-04T13:32:45Z","receivedAt":"2008-07-04T13:32:45Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 4 Jul 2008, Neshama Parhoti wrote:\n\n> Doing the following:\n> \n> git push myuser@myip:~/gitrepo\n> \n> Connects to ssh port 22 on myip.\n> \n> Is there a way to tell git to connect to a random port X ?\n\nYou could use a URL like \"ssh://myuser@myip:X/home/myuser/gitrepo\".\n\nHth,\nDscho\n"},{"id":"82226","messageId":"6dbd4d000807040633l6210e0cdtf37293ba44a52374@mail.gmail.com","threadId":"14287","inReplyTo":"912ec82a0807040628k14c8acd1ree9d82b68f69e080@mail.gmail.com","subject":"Re: can't push to ransom ssh port ?","fromName":"Denis Bueno","fromEmail":"dbueno@gmail.com","sentAt":"2008-07-04T13:33:09Z","receivedAt":"2008-07-04T13:33:09Z","isPatch":false,"sender":{"key":"dbueno@gmail.com","avatar":"https://gravatar.com/avatar/591be06714161d33b59a485e6b822cbd40ecc0b91fd188b9924ea22c405996f7?d=mp&s=160"},"body":"On Fri, Jul 4, 2008 at 09:28, Neshama Parhoti <pneshama@gmail.com> wrote:\n> Is there a way to tell git to connect to a random port X ?\n\n>From the man page for git-push (git push --help):\n\n   One of the following notations can be used to name the remote repository:\n\n   ....\n   o ssh://[user@]host.xz[:port]/path/to/repo.git/\n\n-- \n                              Denis\n"},{"id":"82229","messageId":"20080704.153555.71091133.hanzl@noel.feld.cvut.cz","threadId":"14287","inReplyTo":"912ec82a0807040628k14c8acd1ree9d82b68f69e080@mail.gmail.com","subject":"Re: can't push to ransom ssh port ?","fromName":"Vaclav Hanzl","fromEmail":"hanzl@noel.feld.cvut.cz","sentAt":"2008-07-04T13:35:55Z","receivedAt":"2008-07-04T13:35:55Z","isPatch":false,"sender":{"key":"hanzl@noel.feld.cvut.cz","avatar":null},"body":"> Is there a way to tell git to connect to a random port X ?\n> \n> (something like ssh's -p parameter)\n\nIt can also be done using ~/.ssh/config with this:\n\nHost a.b.c.d\nPort 12345\n\n(see man ssh_config), this way you just need to do it at one place for\nssh, scp and all git repositories.\n\nRegards\n\nVaclav\n"},{"id":"82228","messageId":"912ec82a0807040639mac82958i9a9aea9e5dc22e36@mail.gmail.com","threadId":"14287","inReplyTo":"6dbd4d000807040633l6210e0cdtf37293ba44a52374@mail.gmail.com","subject":"Re: can't push to ransom ssh port ?","fromName":"Neshama Parhoti","fromEmail":"pneshama@gmail.com","sentAt":"2008-07-04T13:39:10Z","receivedAt":"2008-07-04T13:39:10Z","isPatch":false,"sender":{"key":"pneshama@gmail.com","avatar":null},"body":"Thanks ! somehow I missed that..\n"},{"id":"82231","messageId":"912ec82a0807040655q6993c998n60cbbe44efebb2fd@mail.gmail.com","threadId":"14287","inReplyTo":"20080704.153555.71091133.hanzl@noel.feld.cvut.cz","subject":"Re: can't push to ransom ssh port ?","fromName":"Neshama Parhoti","fromEmail":"pneshama@gmail.com","sentAt":"2008-07-04T13:55:17Z","receivedAt":"2008-07-04T13:55:17Z","isPatch":false,"sender":{"key":"pneshama@gmail.com","avatar":null},"body":"Thanks.\n"}]}