Horje
ssh for 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
git clone the certificate chain was issued by an authority that is not trusted Code Example git clone the certificate chain was issued by an authority that is not trusted Code Example
jsonwebtoken generate key Code Example jsonwebtoken generate key Code Example
git SSL certificate problem: self signed certificate Code Example git SSL certificate problem: self signed certificate Code Example
awk or statement Code Example awk or statement Code Example
bash awk or Code Example bash awk or Code Example

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