SSH

Quick Tip: How to Work with GitHub and Multiple Accounts

SSH - Encrypted secure shell connection

ssh {username}@{host}

ssh root@167.99.146.57

ssh admin@example.com

Clone a repo from GitHub using SSH on Windows

    Open the Git Bush terminal in .ssh folder
    eval$(ssh-agent -s)                   - starts ssh-agent
    ssh-add /c/Users/{user}.ssh/id_rsa    - add a key to the ssh-agent
    ssh -T git@github.com                 - test connection
    git clone git@github.com:...git       - Clone the repo
  

Setup ssh for github

How to manage multiple GitHub accounts on a single machine with SSH keys

$ ssh-add -D //removes all ssh entries from the ssh-agent

git clone git@github.com-work_user1:work_user1/repo_name.git


Connect to GitHub from PC terminal to be sure it works with SSH key that was specified

ssh -T git@github.com