Comments (1)
Hi @zydingjun!
Thanks for writing in. For closing the ssh connection, you can just call ssh.dispose()
The timeout is an already supported option, please see readyTimeout
in ssh2 config. You can use it with node-ssh
in .connect()
so it would look like ssh.connect({ ... , readyTimeout: 20000})
Closing this issue as the question has been answered but feel free to continue discussing.
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
- 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.