simple-ssh
simple-ssh copied to clipboard
connection testing
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
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