mirror of
https://github.com/vale981/autossh
synced 2025-03-05 09:21:40 -05:00
fixes number in comment
This commit is contained in:
parent
aba1da6e24
commit
97ebf6a029
1 changed files with 3 additions and 1 deletions
4
demo.js
4
demo.js
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
const autossh = require('./index.js');
|
const autossh = require('./index.js');
|
||||||
|
|
||||||
// open 10 ssh tunnels
|
// open 5 ssh tunnels
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
|
|
||||||
// set up config
|
// set up config
|
||||||
autossh({
|
autossh({
|
||||||
host: '104.131.150.215', // enter host address
|
host: '104.131.150.215', // enter host address
|
||||||
|
@ -21,6 +22,7 @@ for (let i = 0; i < 5; i++) {
|
||||||
console.log('pid: \t\t' + connection.pid);
|
console.log('pid: \t\t' + connection.pid);
|
||||||
console.log(`tunnel established from localhost:${connection.localPort} to ${connection.host}:${connection.remotePort} as ${connection.username}`);
|
console.log(`tunnel established from localhost:${connection.localPort} to ${connection.host}:${connection.remotePort} as ${connection.username}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Possible output example (localPort results are be random)
|
/* Possible output example (localPort results are be random)
|
||||||
|
|
Loading…
Add table
Reference in a new issue