---
title: "Discussion on \"How to connect github using ssh?\" | Hashnode"
description: "Discussion on \"How to connect github using ssh?\". Step 1: Generate SSH key\nssh-keygen -t rsa -b 4096 -C \"your_email_id@example.com\"\nStep 2: Add SSH key to SSH agent\neval \"$(ssh-agent -s)\"\n\nif you are window user so this command run with the help of cygwin\n\nStep 3: Copy the public key\nclip < ~/.ssh/i..."
url: "https://hashnode.com/posts/how-to-connect-github-using-ssh/5fd237a6c045ce55a9b988ad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to connect github using ssh?](https://gauravnumber.hashnode.dev/how-to-connect-github-using-ssh?utm_source=hashnode&utm_medium=feed)

Step 1: Generate SSH key ssh-keygen -t rsa -b 4096 -C "your\_email\_id@example.com" Step 2: Add SSH key to SSH agent eval "$(ssh-agent -s)" if you are window user so this command run with the help of cygwin Step 3: Copy the public key clip < ~/.ssh/i...

Dec 10, 2020 · 2 min read · gauravnumber.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#github](https://hashnode.com/tag/github)
-   [#ssh](https://hashnode.com/tag/ssh)

## Written by

[Gaurav Singh](https://hashnode.com/@gauravnumber)

@gauravnumber

  
[View profile](https://hashnode.com/@gauravnumber)

Enjoy learning programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
