kemayo / sublime-text-git

Plugin for some git integration into sublime text
MIT License
2.83k stars 391 forks source link

Unable to push with encrypted SSH key #582

Open uchiit opened 1 year ago

uchiit commented 1 year ago

Hi!

Where can I set the password for SSH private key in Sublime?

Sublime works fine with non-encrypted key but with encrypted key it says:

Permission denied (publickey).
fatal: Could not read from remote repository.

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

At the same time GitGui works fine with encrypted keys but asks about password with every push request (which is normal).

Thank you!

PS: "ssh-add" didn't work.

uchiit commented 1 year ago

Solved.

Here is an explanation: https://gist.github.com/danieldogeanu/16c61e9b80345c5837b9e5045a701c99

PS: First part of Step №3 can be omitted. Second part of Step №3 can be omitted if you use default name (id_rsa) for your keys.