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

Unable to push with encrypted SSH key

Open uchiit opened this issue 2 years ago • 1 comments

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 avatar Mar 03 '23 21:03 uchiit

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.

uchiit avatar Mar 03 '23 22:03 uchiit