Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Maybe you can help me out. I have a server which I'm accessing thru a SSH tunnel. On this server, I want to clone a git repo from bitbucket, but bitbucket uses Port 22 as well, I assume. So how can I clone the repo to my server using another port?

fyi I came with this solution since I'm struggling with a weird error. When I try to clone a repo on the server, the program gets stuck at "Cloning into repository....". After some googling, I found out that the connection to the repo server is "broken". So this is my guess why - I'm connecting to it using SSH.

Thx

UPDATE This is the console output

root@245:/path/to/dev# git clone git@bitbucket.org:123456789/repo.git
Cloning into repo...

and thats it. It gets stuck after "Cloning into dev"...

share|improve this question
    
Am I correct in understanding you're opening an SSH connection to a machine, let's say MachineA, and from that machine, you're issuing a git clone git@bitbucket.org:tutorials/mydvcsproject.git, and that fails? If that's the case, this doesn't sound like a port issue (an outbound connection will go out using a free, 'random' port, and connect to remote port 22 - your local port 22 isn't used for outgoing). Also, the fact that you're seeing this when attempting to clone over HTTPS indicates this is not a port issue. Can we see the full console output when you run your git command? –  ernie Feb 25 '13 at 19:46
    
Also, you should edit the question - your real question is why you can't clone from bitbucket, and by going down this port path, you've asked an XY problem –  ernie Feb 25 '13 at 19:49
    
@ernie thanks for your reply. See the update above for the console output! –  user1351482 Feb 26 '13 at 10:01
    
What's the https output? Have you exchanged identities? There's a good tutorial on setting up the connection. –  ernie Feb 26 '13 at 17:04

1 Answer 1

Have you tried looking at the documentation for setting up SSH for Git/BitBucket?

share|improve this answer
    
Yep, but didnt work out either.. –  user1351482 Mar 1 '13 at 12:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.