Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Failed getting Banner #328

Copy link
Copy link
@DaspawnW

Description

@DaspawnW
Issue body actions

Hi,

I try to clone a git repository from openshift with the following code:

var nodegit = require("nodegit");

var Git = function (sshUrl) {
    this._sshUrl = sshUrl;
}

Git.prototype.clone = function (cb) {
    console.log(__dirname)
    var sshKeySet = nodegit.Cred.sshKeyNew,
        user = 'username',
        pass = 'pass',
        path = '/tmp/somewhere',
        publickey = __dirname + '/ssh.pub',
        privatekey = __dirname + '/ssh',
        options = {
            remoteCallbacks: {
                credentials: function () {
                    return sshKeySet(user, publickey, privatekey, pass);
                }
            }
        };
    nodegit.Clone.clone(this._sshUrl, 'tmp', options).then(function (repo) {
            console.log('repo');
            console.log('done')
        }, function () {
        console.log(arguments);
    });
};

var git = new Git('ssh://id@url.rhcloud.com/~/git/appname.git');
git.clone(function () {
    console.log('callback');
});

But the code does not connect to ssh. The following error will be thrown:

{ '0': [Error: Failed to start SSH session: Failed getting banner] }

Is there a solution for it?

Cheers,
Björn

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.