Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux windows 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

# To run git-bash in PS: & 'C:Program FilesGitinsh.exe' --login

# START the ssh-agent (Make "lock")
# Be sure you're in git-bash(win) and in git folder!
# 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.
Comment

PREVIOUS NEXT
Code Example
Shell :: check ram speed 
Shell :: laravel 8 composer install 
Shell :: mysql inline pass cli 
Shell :: search installed packages fedora 
Shell :: bash script how to show a file by using less 
Shell :: import sql single table dump in postgres 
Shell :: convert github issur into pr 
Shell :: No repository for "Api Log Entity" was found. 
Shell :: open django terminal 
Shell :: search all folders for file match linux 
Shell :: Could not load project management plugin KDevCMakeManager. 
Shell :: grep more lines around 
Shell :: untar .tar file 
Shell :: install node brew 
Shell :: git status with sizes 
Shell :: bash get timestamp 
Shell :: pyqt5 designer download 
Shell :: bash: /usr/bin/ng: No such file or directory 
Shell :: git commit please tell me who you are 
Shell :: check system memory type 
Shell :: linux adress is already in use 
Shell :: bash print count of unique words in column 
Shell :: ubuntu 20.04 vmware tools 
Shell :: wsl docker System has not been booted with systemd as init system 
Shell :: Listener kali linux 
Shell :: bash remove directory 
Shell :: how to remove remote ulr 
Shell :: git revert commit 
Shell :: linux terminal check available wifi networks 
Shell :: xcode print long string 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =