simple-ssh icon indicating copy to clipboard operation
simple-ssh copied to clipboard

connection testing

Open RemcoThuis opened this issue 4 years ago • 1 comments

i dont under stand i tryed this https://prnt.sc/12ehyp5

but i get no message in my console

You can use standard events from ssh2.

ssh.on('ready', ...);

Originally posted by @MCluck90 in https://github.com/MCluck90/simple-ssh/issues/64#issuecomment-381599941

RemcoThuis avatar May 02 '21 20:05 RemcoThuis

I'd recommend listening for errors then

ssh.on('error', function(err) {
    console.log('Oops, something went wrong.');
    console.log(err);
    ssh.end();
});

It's possible your connection info isn't correct

mikecluck avatar May 06 '21 22:05 mikecluck