Skip to content

Failed getting Banner #328

Closed
Closed

Description

@DaspawnW

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

Activity

  1. maxkorp commented on Dec 13, 2014

    @maxkorp
    Collaborator

    Hi, we do our support (non bug stuff) on Gitter rather than in issues.

    https://gitter.im/nodegit/nodegit#initial

    That said, it looks like a signature verification issue in libssh2, so I'd start with making sure the remote's Sig is in your known hosts. If that doesn't solve anything, pop in to bitter and well get you sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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