If you want to clone a repository from gitlab, github or bitbucket in your Ubuntu machine then you may need to setup SSH Keys in ubuntu and add that key to gitlab, github or bitbucket to make the repository accessible from Ubuntu machine.
1. Login to the Ubuntu machine using SSH client like Putty
sudo -s (This is to be a root user)
4. Verify if .ssh file exists in the /root dir
5. Generate SSH Key. Command:
6. Move to /root/.ssh directory, Command:
7. Verify if the id_rsa.pub was created successfully using command:
8. Reterive the public ssh key to add it in gitlab, github or butbucket using command
You can simply copy the key and add them in gitlab, github or butbucket
9. Git clone to check if you are able to clone the directory after adding the key in gitlab, github or butbucket using commands:
sudo git clone git@<Your_Repository_SSH_Clone_URL>
Thanks for reading, I hope you enjoyed the article.
- Sending Email with attachments in Laravel 5.5 using and PHP & JQuery - February 20, 2020
- How to run php artisan queue:listen in background on Ubuntu or Linux machine - February 6, 2020
- Laravel 5.5 php artisan migrate error in Ubuntu: SQLSTATE[HY000]  Connection refused - January 31, 2020