Hello,

I've been trying to get a local port forward to work but for some reason I 
can not.

For example, using putty, this is how I would create a local port forward:

Local port forward http://localhost:8089/config/  to 
http://skynetHost:8080/config/

putty.exe -N -P 443 -L 8089:skynetHost:8080 sshHost -l Demo0 -pw pass123

Here is how I've been trying to use ssh2
createSSHConnectionForward(sshHost, sshPort, sshUsername, sshPassword, 
srcHost, srcPort, dstIP, dstPort)

 var Connection = require('ssh2');

    var c = new Connection();
    c.connect({
        host:sshHost,
        port:sshPort,
        username:sshUsername,
        password:sshPassword
    });


    c.on('ready', function() {\
        c.forwardOut('localhost', 8089, 'skynetHost', 8080, function(err, 
stream) {
            if (err) throw err;
            console.log('ForwardOut :: ready');

         
        });
    });

  
What am I missing?

Please advise
Mark







On Sunday, November 11, 2012 6:00:19 PM UTC-5, mscdex wrote:
>
> Hello all! 
>
> I'm announcing the first version of my ssh2 module, now available on 
> npm. 
>
> ssh2 aims to be a complete SSH2 client written in pure JavaScript that 
> implements the SSH2 protocol (it does not shell out to a command-line 
> ssh client). 
>
> Currently it can execute one-off commands and start interactive shell 
> sessions. There are still several things to be implemented and 
> tweaked, but I think it's at least in a fairly usable and stable state 
> now. 
>
> Feel free to give it a whirl and report any bugs you may come across. 
>
>
> https://github.com/mscdex/ssh2 (`npm install ssh2`) 
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to