Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git and Bitbucket without SSH

Tags:

git

bitbucket

I've set up a local git repository on my computer, and I'm trying to push that to a newly created Bitbucket account.

The problem is that Bitbucket gives me an ssh url to push to, but the network I'm on (university) has the ssh port blocked for external ssh. So that fails, and if I try to replace ssh:// with https:// it keeps telling me that authentication has failed.

Is there a way to push to bitbucket without using ssh?

like image 349
Kitchi Avatar asked May 17 '13 11:05

Kitchi


People also ask

Is SSH necessary for GitHub?

Why Use an SSH Key? When working with a GitHub repository, you'll often need to identify yourself to GitHub using your username and password. An SSH key is an alternate way to identify yourself that doesn't require you to enter you username and password every time.

Why do I need SSH key for Bitbucket?

Bitbucket uses the key pair to authenticate anything the associated account can access. This two-way mechanism prevents man-in-the-middle attacks. This first key pair is your default SSH identity. If you need more than a default identity, you can set up additional keys.

Can we use Bitbucket without Git?

Bitbucket supports Git (but not SVN; and it no longer supports Mercurial VCS). It is written in Python and uses the Django web framework. And it is available for Mac, Windows Linux, iOS, and Android.


1 Answers

You can connect to GitHub and Bitbucket repositories via HTTPS. Both will also let you push.

These are the typical URLs for HTTPS access:

https://[email protected]/username/repository.git https://github.com/username/repository.git 

Note that Git will prompt you for your password whenever you want to communicate with the remote.

like image 127
poke Avatar answered Oct 20 '22 01:10

poke