sublime-text-git icon indicating copy to clipboard operation
sublime-text-git copied to clipboard

Unable to Push to git in Sublime but able with the command line - Windows 7

Open barak-11 opened this issue 8 years ago • 3 comments

I tried every single possible solution on this thread Push not working #98 but nothing worked. I am using Windows 7 and Sublime Text 3 with the Git plugin installed, using SSH and not HTTPS. The issue occurs in GitHub desktop as well BUT when I use the command line everything works smoothly!

Steps to reproduce: After cloning the project, In Sublime (ctrl+shift+p):

  1. Git Add All
  2. Git Commit
  3. Git Push When I try to push I get the following error in Sublime:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

In GitHub Desktop it reads:

Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository.

Troubleshoot:

git remote -v
#origin  [email protected]:barak-11/Full.git (fetch)
#origin  [email protected]:barak-11/Full.git (push)

git --version
#git version 2.14.1.windows.1

barak-11 avatar Aug 19 '17 12:08 barak-11

You have to add ssh key on your repository for remote config.

SivaVelsamy avatar Nov 20 '17 11:11 SivaVelsamy

One solution: Delete old keys, create one without passphrase (here)

vvaezian avatar May 25 '18 01:05 vvaezian

So I'm running into this issue as well. Running Windows 10, Sublime Text 3, and Windows GIT. I found that I can push without issues via CMD or Bash (Ubuntu on Windows).

However it'll fail everytime with Sublime. HOWEVER, when I used https to clone the repo as opposed to SSH, I am able to push within sublime without issue.

I also want to note that on a separate Windows 10 computer (where I have Cygwin Installed, not Windows Git installed), I am able to push via SSH in Sublime Text 3.

So now I need to figure out how it can be possible without Cygwin and just relying on Windows Bash instead, cause I would definitely like to use SSH for the push instead of https.

sinicide avatar Jun 11 '18 14:06 sinicide