deroccha
deroccha

Reputation: 1183

sublime GIT can't push or pull

I just switched to Sublime and I try to set up git but I can't push or pull to/from remote repository and seems to be related to the path of SSH key. If I use command line everything works fine.

If I use command-line the path to SSH looks

Enter passphrase for key '/root/.ssh/id_rsa':

How do I add to sublime GIT Package the correct SSH keys path

console log

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Upvotes: 1

Views: 2288

Answers (2)

Arthur
Arthur

Reputation: 608

Type the following command: ssh-add -K ~/.ssh/id_rsa to permanently add the id_rsa ssh private key to your local. Enter your passphrase once and won't be asked for the passphrase again.

Upvotes: 0

AltAir
AltAir

Reputation: 253

When your ssh key has a passphrase and you try push/pull with this plugin, we don't have an interactive shell that can request the passphrase. A known workaround is to use a keychain to autofill the passphrase. Sublime-text-git/issues/178

Upvotes: 1

Related Questions