Setting up Bitbucket for free with SSH connection to your machine | unlimited private repositories

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome to my channel and on this video we're gonna be talking about bitbucket um what is bitbucket bitbucket is actually um a platform where you can have your your code repository set up your projects you plan your projects on there you can actually collaborate with teams and also actually have your pipelines your continuous integration continuous delivery pipeline setup on there to be able to to deploy your code to different uh platforms um or to a dedicated server so platforms like cloud cloud plus platforms such as azure aws or your dedicated server so one thing i want to point out is that bitbucket is actually very good and i've been using it for for close to five years now and one thing i can i can guarantee you is that you have unlimited private repositories so you can actually set up as many as you want just make sure that you have only five users you know it only allows you five five users to be able to you know to to do that and if you have more users then you would need to pay you know pay three dollars or six dollars depending on what options you want to go for another thing i want to point out is that it has jira tree low integration you can actually it has built in continuous delivery as well you can actually set up you know uh pipelines using yaml files you know which is really nice you know which is really good and um for this demo for this video we're gonna be looking at how to get it you know sign up for free and also connect your local machine with bitbucket using ssh you know ssh you can ask me what is actually ssh so ssh is actually a protocol that uses encryption you know to you know to to secure the connection between a client and a server and one of the things it also prevents you from is protect you from is a man in the middle attack you can actually read up on ssh and i think it's really useful to you know to have knowledge on what ssh is all about but i use it for for for my you know repository connections and it's it's it's been really good so for you to start with bitbucket you need to sign up so this is the sign up page and um in my case i already have a an account with them so i'm just gonna like authenticate with my google google account but in case you just have to go through the process which is really it's really straightforward and once you get in this is what you see this is the board it's it's really clean and simple all you need to do is to set up a repository just have to click on create repository you give your it asks you for a project name and also you have to also give your repository a name the access level is going to be private for this demo and as well as i'm going to initialize the repository whether beginners um you know like a beginner's readme file and also you have advanced settings if you want to like be explicit on you know what programming language you're using in this repository and as well as descriptions and also option for forking of which i'm just going to leave it as as default as it is so when we create the the repository it gives you you know the readme file for the beginners which is what you see in your repository and as well as um how you can clone this repository on your um local you know local machine so cloning for this um demo we just gonna use ssh not https um we we i copy that and um i try to clone let's try to clone this on my local box and see what happens so i'm trying to clone demo demo is the name of the repository remember and then you can see here it says there's an host my local machine doesn't doesn't know and all i need to do is to say yes i want this post to connect with my with my local machine but no now i cannot because um even though the the big bucket has been added as a as a known you know known host to my list of known lost hosts on this local local machine i'm still being denied permission because i have not set up the ssh um you know for this connection to happen between bitbucket and uh on my local machine so how do you do this you need to go back to bitbucket there's a section so you go to your profile the personal settings under your personal settings there is on on the security there is a section called ssh keys and in there you can actually um general you know you can you can add your keys here and for you to you know to to to start up i think the best thing is to um you know click on learn how let's just go in there on how to generate a necessity key it's loaded and they can see here it says it tells you to set up an ssh key and like i mentioned earlier on it prevents you from mining the middle attacks you know it actually helps you to be able to secure your communication with bitbucket from your local machine and also ensure that you don't always provide your password every time you know every time you have to clone or you have to push your code it's really seamless it's really nice i've been using it and i i love it so in my case i'm using windows so all i need to do is um click on that and that takes me to a section where i just have to know what command to run on my windows so i run that but for me to be able to run this i need git so git is remember um for for those of you who don't know bitbucket actually the repository section runs at get you need to understand git command for you to be able to you know to to to push your code to make changes to your code to push it to the to the to the remote um sava um so you need to install git on your on your on your on your machine you can get it from this um from this um site when you install it then you have git bash you can actually run it from the git bash or you can make sure that git is already added to your environment variables when you're installing it so that you can run it from the windows terminal and in my case i've already installed git so i'll be skipping that step i just have to copy that command line and run it on here and you can see it's gonna generate two keys for me which is the public and the private keys if you check on ssh there's nothing yet so let's just do this so you can see this in action and then i'll gonna i'm just gonna create it into that in that file so passphrase is for you to um you know to provide like some sort of a secret key to you that you want to always use with your ssh in communications but um in my case i would i rather not use that passphrase because whenever you use passwords you always have to you know provide the what's it called provide the passphrase whenever you do the authentication so i'm just gonna just make it blank and then as you can see you can see there are two files generated for you which is your public key and your private key so what you need to upload to a bitbucket is your public key which is this one we copy that and then we put that in this section and remember when you add this make sure you you're not ex you're not giving out your private key because your private key is private to you it's private to your machine because if you let out your private key that means um anyone can easily get access into your local box so just make sure you only give out your your public key so as you can see here we have a key in here so what we can do is try to clone you know clone the repository one more time and see what happens yeah we see and as you can see it seems like we've got something on my on my machine and let's go back to guest and you can see there's a there's a folder here with the readme file from the repository um that we we've just created in in bitbucket let's go back to that section and you can you can see as you can see we've got um you know we've got something in here so this is actually just what i want to show you guys and and okay let me just just for you know just for just for you know demo purposes let's just add one for you and call it demo and in there i'm just gonna say blah blah blah blah okay let's save that let's push this to let's just push this so you can see this so get let's add that file to get and then let's say git um what's it called we need to commit this right to to to get and say i did the more far so what does that give us it gave us that and then we have to just push remember when you're pushing for the first time it might ask you to try to provide some information oh no it went through so yeah you have it but there might be some cases where it might ask you to provide um your username and like the name you're using to push the code and as well as um your your email so it gives you a guide on how to do that which is fairly straightforward but um in this case um we've pushed the code to bitbucket now let's go check bitbucket and see uh if we've got a new file there so as you can see new file we just added 44 seconds ago so that's just it about this um you know this this this video and i'm sure it's going to be you know valuable to to you know to people out i hope it's valuable to people out there because i know we've got students that are doing research and they have you know the maybe computer science doing research and they want to store their their their code somewhere bitbucket you can always store your code there and even have it helps you to collaborate with other students to you know to contribute to the to the code base and i feel like it's useful also for for small businesses where you know you have a small business you don't have a technology um infrastructure or you don't have any platform and you want to just start this is free you know this can help you you know where you can just always manage your your code base the product you're developing for your for your business so i hope you find this useful and i and i would and please don't forget to subscribe you know like you know comment on this video and let me know what you think but um i'll catch you in my next video stay safe and cheers bye
Info
Channel: Code with Femi
Views: 4,888
Rating: 4.9130435 out of 5
Keywords: Bitbucket, Coding, Free unlimited private repositories, Programming, SSH, Software, Software engineering, airflow helm chart ssh git sync, bitbucket authentication python, bitbucket clone repository wsl ubuntu, bitbucket config tutorial espaƱol, bitbucket installation windows, bitbucket tutorial, how to use bitbucket, bitbucket pipelines, git, bitbucket create repository, bitbucket cloud, bitbucket introduction, bitbucket repo, bitbucket for beginners, atlassian, bitbucket git
Id: ceJq-Ftr1Ik
Channel Id: undefined
Length: 11min 44sec (704 seconds)
Published: Tue Jul 28 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.