Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection testing #72

Open
RemcoThuis opened this issue May 2, 2021 · 1 comment
Open

connection testing #72

RemcoThuis opened this issue May 2, 2021 · 1 comment

Comments

@RemcoThuis
Copy link

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 #64 (comment)

@MCluck90
Copy link
Owner

MCluck90 commented May 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants