SSH Add on git
SSH Add on git
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/emmap1/.ssh/id_rsa):
-----------------PRESS ENTER-----------------------
--------------------------------------------------------------------------
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/emmap1/.ssh/id_rsa):
Created directory '/Users/sudsaxena/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/sudsaxena/.ssh/id_rsa.
Your public key has been saved in /Users/sudsaxena/.ssh/id_rsa.pub.
The key fingerprint is:
4c:80:61:2c:00:3f:9d:dc:08:41:2e:c0:cf:b9:17:69 sudsaxena@myhost.local
The key's randomart image is:
+--[ RSA 2048]----+
|*o+ooo. |
|.+.=o+ . |
|. *.* o . |
|.=Eo |
| o.S |
| .. |
| . |
| |
| |
+-----------------+
---------------------------------------------------------------------------------------------------
$ ls ~/.ssh
id_rsa id_rsa.pub
The command displays two files, one for the public key (for example id_rsa.pub) and one for
the private key (for example, id_rsa).
If you don't want to type your password each time you use the key, you'll need to add it to
the ssh-agent.
1.To start the agent, run the following:
$ eval `ssh-agent`
Agent pid 9700
DONE!!!!