api-response-manager 2.6.4 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/commands/tunnel.js +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/commands/tunnel.js
CHANGED
|
@@ -158,14 +158,12 @@ async function connectTunnelClient(tunnelId, subdomain, localPort, protocol = 'h
|
|
|
158
158
|
console.log(chalk.yellow.bold('🔌 TCP/SSH Connection Info:\n'));
|
|
159
159
|
console.log(chalk.white(` TCP Host: ${message.tcpHost}`));
|
|
160
160
|
console.log(chalk.white(` TCP Port: ${message.tcpPort}\n`));
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
console.log(chalk.cyan(` ssh -i ~/.ssh/your_key.pem -o ProxyCommand="sh -c '{ printf \\"SUBDOMAIN:${subdomain}\\\\n\\"; cat; } | nc %h %p'" user@${message.tcpHost} -p ${message.tcpPort}\n`));
|
|
168
|
-
}
|
|
161
|
+
|
|
162
|
+
console.log(chalk.gray('Connect via SSH:'));
|
|
163
|
+
console.log(chalk.cyan(` ssh <username>@${message.tcpHost} -p ${message.tcpPort}\n`));
|
|
164
|
+
console.log(chalk.gray('SSH with Key:'));
|
|
165
|
+
console.log(chalk.cyan(` ssh -i ~/.ssh/your_key <username>@${message.tcpHost} -p ${message.tcpPort}\n`));
|
|
166
|
+
console.log(chalk.gray.italic(' Replace <username> with your device\'s SSH username\n'));
|
|
169
167
|
} else {
|
|
170
168
|
// Display QR code for HTTP/HTTPS tunnels (not for TCP/SSH)
|
|
171
169
|
displayQRCode(message.publicUrl);
|