Skip to content

Instantly share code, notes, and snippets.

@ahultgren
ahultgren / Agent-forwarding.js
Created May 26, 2014 21:18
Reproduction of a bug in ssh2 when using agent forwarding
var Connection = require('ssh2');
var conn = new Connection();
conn.on('ready', function() {
exec(conn, 'pwd', function () {
exec(conn, 'pwd', function () {
conn.end();
});
});
});