Comments (5)
This may take a while since I am not into Typescript and this is a little out of scope for me.
I will have a look into it. But I can not give you an estimation on this issue. sorry for that
from tunnel-ssh.
If this helps, this is my local types file to get it working.
types.d.ts
import { Server, ListenOptions } from 'net';
import { Client, ConnectConfig } from 'ssh2';
declare module 'tunnel-ssh' {
interface TunnelOptions {
autoClose: boolean;
}
interface ForwardOptions {
srcAddr: string;
srcPort: number;
dstAddr: string;
dstPort: number;
}
declare function createTunnel(
tunnelOptions: TunnelOptions,
serverOptions: ListenOptions,
sshOptions: ConnectConfig,
forwardOptions: ForwardOptions,
): Promise<[Server, Client]>;
}
from tunnel-ssh.
Ok that is already a good start. I will have a look. Thank you
from tunnel-ssh.
Awesome ,
Thank you I added your file to 5.0.7.
Feel free to provide a pull request to improve support.
from tunnel-ssh.
Just as a heads up, this fails with the latest version.
Installing an older version and types manually works:
npm i [email protected]
npm i @types/tunnel-ssh
from tunnel-ssh.
Related Issues (20)
- migration from v4 to v5 HOT 5
- Server is not closed if client fails HOT 3
- There is no way to specify dynamic port HOT 2
- About using this module to test the connection process HOT 1
- Can not listen to events on the latest version HOT 1
- Time to update ssh2 to v1.12.0 HOT 1
- Connecting to MongoDB via tunnel-ssh HOT 2
- Multiple ports forwards HOT 3
- Logging verbose level
- Application crashing when `No Response from server` HOT 5
- About tunneling with Redis cluster (AWS Memory DB) HOT 1
- how to close the tunnel connection HOT 2
- Question : How to handle errors HOT 1
- (love) Just to tell you how great your software is HOT 1
- Option to flip the forwarding direction?
- How to change to localhost server on my pc instead my remote mysql (if connection failed) ?
- cpu-features causes build error on M1 macOS HOT 1
- not working with nodejs current version >14 HOT 2
- Unhandled Error during connection. HOT 2
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 tunnel-ssh.