Comments (4)
The package does support concurrent connections but there's usually a limit by the server on how much concurrent requests can be run on a connection.
You should not use a for loop to invoke asynchronous methods, you should do them in a pool with a max number or chain-them up or await 1 by 1.
That's just my personal opinion. The error seems to be coming from the base library, you could ask the author why this is happening. My rough guess would be rate limiting on the server side.
from node-ssh.
Hey,
I am having the same issue - it crashes the server even if I catch all errors. Will investigate the issue and report it here if I find how to fix it.
from node-ssh.
So for me, increasing significantly the MaxSessions in the sshd_config fixed the issue. When you don't set it with OpenSsh, MaxSessions = 10
from node-ssh.
Thanks for reporting the fix that worked for you @martinlevesque
Cheers
from node-ssh.
Related Issues (20)
- Module '"stream"' can only be default-imported using the 'esModuleInterop' flag
- UnhandledPromiseRejectionWarning: Error: invalid command ping www.google.com
- privateKey: Buffer.from('...') HOT 4
- How about method ssh.disconnect ? HOT 3
- Command injection using execcommand
- how set debug logs in node-ssh npm HOT 1
- add custom parameter to ssh connection config HOT 1
- ssh: bind connection to special interface or IP address(config.localAddress?)
- NodeSSH Reconnect Issue: isConnected() Returns TRUE Even When Connection Unsuccessful
- Does node-ssh work with the latest OpenSSL version (I think it is 8.9) and Ubuntu 22?
- execCommand mistakenly removes empty content at the beginning and end of a file. HOT 2
- can not add event listener for handshake event to identify negotiated kex HOT 2
- can i set timeout for ssh command? HOT 2
- Question: Any way to skip unmodified files from being uploaded to server? HOT 1
- feature suggestions HOT 1
- Seek fault when downloading some files HOT 1
- ssh.dispose method throwing error after migrating to node 18 HOT 1
- Question: How to interact with sub-shell created from the main shell
- Is it possible to set transfer mode (binary or ascii) when calling `putFile`
- execCommand throws on large outputs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ssh.