Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ssh-add git

$ eval "$(ssh-agent -s)"
$ ssh-add -K ~/.ssh/id_ed25519
Comment

terminal git add ssh key

$ ssh-add ~/.ssh/id_rsa
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

git add remote via ssh

git remote add origin ssh://user@host/srv/git/example
Comment

PREVIOUS NEXT
Code Example
Shell :: ssh key generation 
Shell :: bash check if string in file 
Shell :: Bluetooth problem Linux 
Shell :: git push url change 
Shell :: mkdir powershell 
Shell :: anaconda install package 
Shell :: powershell env vars 
Shell :: how to remove blank lines in bash 
Shell :: mocha watch mode 
Shell :: kubectl get namespaces command 
Shell :: git login 
Shell :: git use ssh instead of https 
Shell :: setup redis ubuntu 
Shell :: zip a file terminal 
Shell :: scp remote to local 
Shell :: how to get out of branch git 
Shell :: spotify combo chercker 
Shell :: how to install any package in node.js 
Shell :: shell sort algorithm complexity 
Shell :: pdf to images imagemagick 
Shell :: how to add images in readme github 
Shell :: find mongodb process id 
Shell :: where are timezones located linux 
Shell :: npm vs yarn command 
Shell :: find name file in cmd 
Shell :: git pull request 
Shell :: rustup uninstall nightly 
Shell :: * daemon not running; starting now at tcp:5037 
Shell :: master to main github 
Shell :: git squash branch 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =