How to add SSH key in github

in

Generate an SSH key pair

If you do not have an existing SSH key pair, generate a new one:

1.Open a terminal.

2. Run ssh-keygen -t followed by the key type and an optional comment. This comment is included in the .pub file that's created.You may want to use an email address for the comment.

For example, for ED25519:

ssh-keygen -t ed25519 -C "<comment>"


For 2048-bit RSA:

ssh-keygen -t rsa -b 2048 -C "<comment>"


3.Press Enter. Output similar to the following is displayed:

Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/user/.ssh/id_ed25519):


Accept the suggested filename and directory, unless you are generating a deploy key or want to save in a specific directory where you store other keys.

You can also dedicate the SSH key pair to a specific host.


Specify a passphrase:

Enter passphrase (empty for no passphrase):
Enter same passphrase again:


A confirmation is displayed, including information about where your files are stored.


Watch this to Add SSH key in github



No comments:

Post a Comment

Contact me

Get in Touch

Name
Suriya Ravichandran
Address
Chennai,Tamilnadu
Email
rsuriya119@gmail.com
Message me