});
```
However, when I attempt using any new SSH key I generate either in Bitbucket or Github, I am getting the following error: Failed to authenticate SSH session: Unable to send userauth-publickey request

It may be a little naive but ideally the dependencies on system libs should be removed. This makes it very difficult for us to use since our applications are used in a variety of OS's and distributions.

System Info

Description

I went through all related issues closed/open. At first I thought it might be problems with Remote#push, then I found out that commit and stage are also causing node to crash with the same error.

Real trouble is this happens randomly, sometimes after 2 or 3 times of API calling, other times just straight-down crashes on the first call. I even tried to monitor v8 heap/CPU usage, nothing suspicious was found though.

Reinstalling node and node modules didn't work either, but I'm guessing it's still most likely a compatibility issue with node. Any help is appreciated.

Code

The code is posted as follows, in case there is something wrong with the way APIs are called: