Skip to content

Allow to clone via SSH #2085

Closed
Closed

Description

@simonseyer

Description

When cloning via Desktop the remote origin is set to the https URL. Since I always use SSH when working on the terminal, I have to change the remote which is really annoying. It would be nice to have a setting where the user can decide if new repos should be cloned via https or ssh.

Version

GitHub Desktop version: 0.6.1
OS version: macOS Sierra 10.12.5 (16F73)

Activity

  1. joshaber commented on Jun 29, 2017

    @joshaber
    Contributor

    Thanks for the suggestion!

    This idea is interesting for the future, but this is beyond the scope of our current roadmap.

    You can setup an insteadOf config to change URLs universally if you like: https://stackoverflow.com/questions/1722807/git-convert-git-urls-to-http-urls

    I'm going to add the future-proposal label to this issue and close it out, so that we don't get overwhelmed with our backlog! We'll revisit these as part of our next planning session.

  2. foresmac commented on Dec 13, 2017

    @foresmac

    Please let me leave a strong +1 on this feature request. I got frustrated with this a lot recently since we're doing like a dozen new projects at the office. Even after manually selecting the ssh ref and pasting that into the clone repository dialog, Github Desktop rewrites them to use the HTTPS URLs.

    Due to security and regulatory reasons, we need to sign every commit, and this is all handled perfectly via terminal and VS Code because I have everything configured in my git config. But trying to do it via HTTPS is a major pain.

  3. mauriziod commented on Apr 20, 2018

    @mauriziod

    Love to see this request moving forward, I feel the pain changing all cloned repos from HTTPS.

  4. cmeyertons commented on Jun 13, 2018

    @cmeyertons

    Expanding on @joshaber 's comment, the workaround can be performed with

    git config --global url."[email protected]:".insteadOf https://github.com/

  5. foresmac commented on Jun 19, 2018

    @foresmac

    It was easier to just stop using GitHub Desktop altogether, frankly.

  6. FrankFang commented on Jan 23, 2019

    @FrankFang

    It's 2019 now, We still have no button for ssh?

  7. billygriffin commented on Feb 11, 2019

    @billygriffin
    Contributor

    Hi folks - we updated the open issue for this (#2579) to link back to this issue. Since it's already open and provides a bit more info on the overall surface area of the issues, I'm going to remove future proposal here. It's definitely something we're interested in, and we're weighing it against our other priorities to determine when we're able to work on it. Thanks for all the feedback!

  8. WaleedAshraf commented on Jul 19, 2019

    @WaleedAshraf
    Contributor

    Any update on this?

  9. irrg commented on Aug 26, 2019

    @irrg

    Any update on this?

  10. brokenthorn commented on Oct 28, 2019

    @brokenthorn

    Like @billygriffin said, since this has been closed and a lot more has been discussed over at the newer #2579, #2579 is where you should be heading at right now.

  11. oskarlakner commented on May 24, 2020

    @oskarlakner

    Sorry guys but it's ridiculous that in 2020 it's still impossible to clone via SSH... 🤦‍♂️

  12. abdulrauf11 commented on Aug 7, 2020

    @abdulrauf11

    Wow! is there still no solution for this?

  13. WaleedAshraf commented on Aug 20, 2020

    @WaleedAshraf
    Contributor

    I run this script in my main folder, where I have all the repo clones from one org. It'll update all remote URL to SSH.

    for d in */; do
        cd "$d"
        echo ${PWD##*/}
        remote="[email protected]:<YOUR-GITHUB-ORG-NAME>/${PWD##*/}.git"
        echo "${remote}"
        git remote set-url origin $remote
        cd ..
    done
  14. rakesh-ounce commented on Aug 20, 2020

    @rakesh-ounce

    Hi Team,

    We are not able to clone using SSH. It would be better if you could please add this feature or can let us know the steps to be used for cloning via SSH URL

  15. fatbasstard commented on Mar 4, 2021

    @fatbasstard

    Still not possible to do the clone command with ssh...

    Isn't it an option to make it an application setting?

    image

    Mainly talking about this option, who not make the clone method a simple option?

  16. kennu commented on Mar 11, 2021

    @kennu

    I also need this for Desktop and CLI interoperability. CLI repositories are cloned with ssh and they don't work in GitHub Desktop. GitHub Desktop repositories are cloned with https and they don't work on the CLI.

  17. alexanderilyin commented on Nov 10, 2021

    @alexanderilyin

    @shiftkey what's the timeline for implementation?

  18. andreaswilli commented on Jan 16, 2022

    @andreaswilli

    I was very surprised to learn this feature is not supported, especially considering you recently started working on advanced features like cherry picking. Would love to see SSH cloning!

  19. jseaber commented on Feb 27, 2022

    @jseaber

    SSH should be the default for Desktop, especially as HTTPS is no longer supported from the command line.

  20. cossio commented on Aug 29, 2022

    @cossio

    It's a bit confusing following the status of all these issues. It seems #2579 was closed, however I just installed Github Desktop and it by default clones my repos with the HTTPS url, instead of using SSH. And I can't find any setting to make it use SSH by default instead of HTTPS.

    Can someone comment on the current status of this feature?

  21. steveward commented on Aug 30, 2022

    @steveward
    Contributor

    @cossio it isn't possible to set the default option to SSH in GitHub Desktop. The work that was done improved overall SSH support, but you still need to clone a repository via SSH by using the URL option in the clone dialog. I hope that helps.

  22. cossio commented on Aug 30, 2022

    @cossio

    @steveward Thank you, I understand.

    Are there plans to allow setting SSH as default?

  23. marcospgp commented on Mar 27, 2023

    @marcospgp

    Would be great to have this, currently I have to clone by URL and use the SSH URL, but it would be easier to search for the repo inside GitHub Desktop itself.

  24. badigit commented on Feb 25, 2024

    @badigit

    need this feature

  25. amrelsadany commented on Jun 17, 2025

    @amrelsadany

    it's 2025 and still not implemented :/
    is it hard for you guys to implement such a feature !!

  26. abhishek-ew commented on Aug 12, 2025

    @abhishek-ew

    nvm back to uninstalling :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions