Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

terminal git add ssh key

$ ssh-add ~/.ssh/id_rsa
Comment

windows git ssh key add

(if youre having problems)
cd path-to-Git/bin (for me : cd C:Program FilesGitin)
bash
$ exec ssh-agent bash
$ ssh-add your-key-location
Comment

git add ssh key

To add a default ssh key tied to Windows from cmd for git: $ is things you type, > is output

$ ssh-keygen 
> Generating public/private rsa key pair.
> Enter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):    [Enter for default] 
> Created directory '/c/Users/emmap1/.ssh'.
$ Enter passphrase (empty for no passphrase): [password]
$ Enter same passphrase again:  [password]
> Your identification has been saved in /c/Users/emmap1/.ssh/id_rsa.
> Your public key has been saved in /c/Users/emmap1/.ssh/id_rsa.pub.
> The key fingerprint is: e7:94:d1:a3:02:ee:38:6e:a4:5e:26:a3:a9:f4:95:d4 emmap1@EMMA-PC

If you want to avoid typing in your password each time:
$ start-ssh-agent
> Removing old ssh-agent sockets
> Starting ssh-agent:  done
$ Enter passphrase for /c/Users/user/.ssh/id_rsa: [password]

Comment

github how to add ssh key

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa
Comment

PREVIOUS NEXT
Code Example
Shell :: linux how to remove all files with grep 
Shell :: bash tokenize string 
Shell :: strapi command to generate custom route 
Shell :: how to change my default branch in git 
Shell :: failed (Result: start-limit-hit) 
Shell :: rename branch name in git 
Shell :: Save changes in a new branch git 
Shell :: How do i search for available packages from the command-line 
Shell :: linux service start 
Shell :: npm install from github 
Shell :: rename all file extention terminal 
Shell :: how to create new branch in git 
Shell :: change user:dir to linux dir/file 
Shell :: git squase to rename author 
Shell :: install insomnia in ubuntu 
Shell :: unzip gz file linux 
Shell :: install docker-compose 
Shell :: vim delete to end of file 
Shell :: bash: /usr/local/bin/firebase: Permission denied 
Shell :: update time in linux 
Shell :: find external ip ubuntu 
Shell :: how to push cloned repo 
Shell :: install docker on windows server 2019 
Shell :: powershell global variable 
Shell :: undo git commit after push 
Shell :: unexpected inconsistency run fsck manually 
Shell :: uname -r command 
Shell :: run crontab locally in windows 
Shell :: flutter install in window 
Shell :: move directory with files linux 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =