---
title: "Discussion on \"How to use \"git clone\" with a custom SSH key\" | Hashnode"
description: "Discussion on \"How to use \"git clone\" with a custom SSH key\". GIT_SSH_COMMAND=\"ssh -i ~/.ssh/id_rsa_custom\" git clone git@github.com:user/repo.git your-folder-name\n\n`~/.ssh/config`\nHost github_ssh_connection\n   HostName github.com\n   IdentityFile ~/.ssh/id_rsa_custom\n\ngit clone git@github_ssh_connection:user/re..."
url: "https://hashnode.com/posts/how-to-use-git-clone-with-a-custom-ssh-key/647d8019996068e3e2e1b8e2"
---

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

Discussion

# [How to use "git clone" with a custom SSH key](https://blog.davidassigbi.com/how-to-use-git-clone-with-a-custom-ssh-key?utm_source=hashnode&utm_medium=feed)

GIT\_SSH\_COMMAND="ssh -i ~/.ssh/id\_rsa\_custom" git clone git@github.com:user/repo.git your-folder-name \`~/.ssh/config\` Host github\_ssh\_connection HostName github.com IdentityFile ~/.ssh/id\_rsa\_custom git clone git@github\_ssh\_connection:user/re...

Jun 5, 2023 · 1 min read · blog.davidassigbi.com  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#ssh-keys](https://hashnode.com/tag/ssh-keys)

## Written by

[Mensah David Assigbi](https://hashnode.com/@davidassigbi)

@davidassigbi

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

Full Stack IT Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
