Thursday, September 12, 2024

Generate SSH key to setup Git Repo

Generate SSH key to setup Git Repo 


C:\Users\>ssh-keygen -t rsa -b 4096 -C "anurag.pandey@demo.com"

Generating public/private rsa key pair.

Enter file in which to save the key (C:\Users\/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in C:\Users\/.ssh/id_rsa

Your public key has been saved in C:\Users\/.ssh/id_rsa.pub

The key fingerprint is:

SHA256:sqJ1iaDi3R0VmwiFwKDOriahqrBfrRYMpvNERmO0jO4 anurag.pandey@demo.com

The key's randomart image is:

+---[RSA 4096]----+

| o+.. ..         |

|.o+o ..          |

|ooo. .   .       |

|+ =   . . +      |

| O.o  ..S+       |

|*...oo +.        |

|=E  =.=.         |

|Boo+o+. .        |

|Xooo.. .         |

+----[SHA256]-----+


C:\Users\>




copy and add id_rsa.pub to git setting -  Authentication keys



 

No comments:

Post a Comment