Horje
ssh github Code Example
ssh github
ls -al ~/.ssh
Linux use ssh with github
# REGISTER github account globally
git config --global user.name <"any name in quotes">
git config --global user.email <github email no quotes>

# NAV to .ssh (unix/powershell)
cd ~/.ssh
cd c:/Users/<user>
  
# CREATE "key"
ssh-keygen -t rsa -C <same email address>
# Press enter twice (optionally create pass).

# PRINT ~.pub contents and COPY or open .ssh file.
ssh-agent sh -c 'ssh-add; ssh-add -L'
# OR
cat ~/.ssh/id_rsa.pub

## ADD key to github.com
# github.com >settings >SSH and GPG keys: Make New: paste.

# CD to git dir (unix/win)
cd /srv  # OR home/git/ (https://serverfault.com/a/761420/956620)
cd c:/Users/<user>/git

# START the ssh-agent (Make "lock") (win: use gitbash)
# eval `ssh-agent -s` # not working win10
eval $(ssh-agent)

# INSERT "key"
ssh-add ~/.ssh/id_rsa

# ADD github fingerprint to known hosts
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

# CLONE your repo via ssh from github.
ssh for github
> Enter a file in which to save the key (/home/you/.ssh/id_ed25519): [Press enter]




Shell

Related
copy files from certain date linux Code Example copy files from certain date linux Code Example
git squash Code Example git squash Code Example
stackoverflow most popular question Code Example stackoverflow most popular question Code Example
convert capital letters to lowercase in shell script Code Example convert capital letters to lowercase in shell script Code Example
how to append two file sin bash Code Example how to append two file sin bash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12