Giter Club home page Giter Club logo

ci-start-code's Introduction

Why should we use SSH with Git-hub

SSH keys and Git-hub

There are two methods to clone the repo

SSH AND HTTPS

  • We have two types repos public repo
  • second is private repo

Generating a SSH Key

  • generate the SSHkey your local system

  • copy the key from the local system to the specific on GitHub

  • On this occasion That Repository is called ci-start-code

  • .ssh folder where we store the ssh keys available

  • Name the key as your name (E.G. John)

  • To see the folder you need to go to the users/user in your C:/ drive and type ls -a to view the ssh key folder

  • Go to users, and your user then look for the .ssh folder

  • Enter the folder using cd .ssh

  • Then I entered the following command ssh-keygen -t rsa -b 4096 -C "my_email"

  • Then I entered my name as the key name and left the passphrase blank.

  • Now I copy the public key with the command cat john.pub

  • Go to the gitHub repo > Settings > Deploy Keys and add a new key with your name as the title and the public key with the one you just copied.

It is essential and best practice to give the keys a descriptive name

In this case we just called it our names for testing purposes but it can be good to name it with the software it is being used with. For example "Name"-"Software" (E.G. John-Jenkins)

  • Now the secured public key from our local system has been copied to our cloud which is GitHub in this case.

The private key is actually like having a padlocked door, you need the private key to get into the public key. This is known as a key-pair. By adding the key into GitHub we have essntially padlocked the Repository and are going to give Jenkins the private key to unlock that padlock.

(SOURCEBuildTest) = CI Integration ↓ (PRODUCTION) = CD Delivery and Deployment

  • (Delivery is automated)
  • (Deployment is manual) unless it is to an existing app that is fully functional or confident developers.

ci-start-code's People

Contributors

johnbyrnejames avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.