Monday, May 18, 2020

How To Set up SSH key in GitLab On Ubuntu 18

Video Tutorial - https://youtu.be/MBL3eYUWXJc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

in This Tutorial you will learn "How To Create and add your SSH key in Gitlab Account"
GitLab is a web-based open-source Git repository manager written in Ruby |
SSH keys allow you to establish a secure connection between your computer and GitLab.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
GitLab Version - GitLab-CE 12.10.3
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install xclip git openssh-server -y
Creating SSH Key - ssh-keygen -t rsa -C "www.yourdomain.com" -b 4096     [StrongPassword]
nano /etc/ssh/sshd_config 
PermitRootLogin no


xclip -sel clip < ~/.ssh/id_rsa.pub                                      [Paste - control -v ]
Test your SSH connection - ssh -T git@www.yourdomain.com    

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment