--- title: "How to change your local repo from https to ssh" slug: "how-to-change-your-local-repo-from-https-to-ssh" description: "Want to change your local repo from HTTPS to SSH? Get into the details of how you can do it here." updated: 2026-10-23T18:40:59Z published: 2026-10-23T18:40:59Z canonical: "learn.allspice.io/how-to-change-your-local-repo-from-https-to-ssh" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.allspice.io/llms.txt > Use this file to discover all available pages before exploring further. # How to change your local repo from https to ssh ## How to change your local repo from https to SSH There are a lot of reasons you may want to use SSH over https. - SSH is faster than https - Although both are secure SSH is more secure - SSH is better able to navigate network obstacles - We often recommend SSH as a method for resolving git push issues Although https is easier to setup, it is relatively easy for an engineer to setup SSH without an installer. ## Install an SSH key locally - [TortoiseGit SSH install instructions](/v1/docs/using-ssh-with-tortoisegit) - [You may have to re-run the first start wizard](/v1/docs/how-to-re-run-tortoisegits-first-start-wizard) - [OpenSSH install instructions](/v1/docs/setting-up-openssh-authentication-with-git) ## Add SSH key to Allspice - [Add SSH key to Allspice](/v1/docs/setting-up-openssh-authentication-with-git-1) ## Switching your local repo to Git - Grab your repo’s ssh address ```plaintext git@hub.allspice.io:AllSpice-demos/Altium-archimajor-3d-printer-driver-demo.git ``` - Navigate to your project’s local Git repo using a bash terminal (Git Bash on Windows) - Enter the following commands replace with your repo ssh address ```bash git remote rm origin git remote add origin git fetch origin git push --set-upstream origin/master ``` - If the authentication doesn’t work - Check your SSH file and file location - %USERPROFILE%/.ssh (Windows) - ~/.ssh (Mac/Linux) - Make sure you uploaded your public key, not your private key - Try regenerating the key - Try rebooting your computer - email support@allspice.io