Giter Site home page Giter Site logo

ssh-setup's Introduction

GENERATING SSH KEYS

IN YOUR TERMINAL, BEGIN AT ROOT FOLDER (~)

ssh-keygen -t ed25519 -C "[email protected]"

WHEN YOU SEE...

Enter a file in which to save the key (/Users/you/.ssh/id_ed25519):*

[Press enter]

Enter passphrase (empty for no passphrase):

[Type a passphrase, or press enter to skip]

Enter same passphrase again:

[Type passphrase again]

START THE SSH AGENT

eval "$(ssh-agent -s)"

OPEN FILE (WINDOWS USERS SKIP)

open ~/.ssh/config

IF FILE DOES NOT EXIST (WINDOWS USERS SKIP)

> The file /Users/you/.ssh/config does not exist.
touch ~/.ssh/config

OPEN FILE (WINDOWS USERS SKIP)

open ~/.ssh/config

PASTE INTO TEXT EDITOR (WINDOWS USERS SKIP)

Host *  
  AddKeysToAgent yes  
  UseKeychain yes  
  IdentityFile ~/.ssh/id_ed25519  

SAVE AND CLOSE THE FILE (WINDOWS USERS SKIP)

BACK IN TERMINAL: ADD TO KEYCHAIN

ssh-add -K ~/.ssh/id_ed25519

ADDING SSH TO GITHUB

RUN THIS LINE IN TERMINAL TO COPY PUBLIC KEY TO CLIPBOARD (MAC)

pbcopy < ~/.ssh/id_ed25519.pub

RUN THIS LINE IN TERMINAL TO COPY PUBLIC KEY TO CLIPBOARD (WINDOWS)

clip < ~/.ssh/id_ed25519.pub

ON GITHUB:
FOLLOW THESE INSTRUCTIONS AND PASTE IN COPIED KEY FROM ABOVE STEP (CMD/CTRL + V)
https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account


CONNECT TO YOUR REPO

ON GITHUB:
FOLLOW THESE INSTRUCTIONS TO SET UP A REPO
https://docs.github.com/en/get-started/quickstart/create-a-repo

IN YOUR TERMINAL:

cd into your project folder
git remote set-url origin [PASTE YOUR SSH URL HERE]
git branch -M main
git add .
git commit -m "your first commit"
git push -u origin main

ssh-setup's People

Contributors

h-b8 avatar

Watchers

 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.