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
?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With