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

how set debug logs in node-ssh npm #449

Open
shripadcapgemini opened this issue Nov 23, 2022 · 1 comment
Open

how set debug logs in node-ssh npm #449

shripadcapgemini opened this issue Nov 23, 2022 · 1 comment
Labels

Comments

@shripadcapgemini
Copy link

Hello Everyone,

I am using the node-ssh npm package (2.0.7 version), but due to some issue, node-ssh does not accept packets sent by an SSH server.
Just because of this, my application suddenly crashed. I am not able to debug the packet exchange from the client end.
Could you please help me to understand how we can set debug logs to check the exact command or packet exchange status?

@steelbrain
Copy link
Owner

Hi @shripadcapgemini

Thanks for writing in and apologies for the slow response. You should be able to supply the debug param to connect(). See https://github.com/mscdex/ssh2/#:~:text=%7D%2C%0A%7D-,debug,-%2D%20function%20%2D%20Set

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

No branches or pull requests

2 participants