webssh2_client 0.2.21 → 0.2.23
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
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# WebSSH2 Client
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
WebSSH2 Client is a web-based SSH client that allows users to connect to SSH servers directly from their web browsers. It's built using modern web technologies and provides a seamless, secure SSH experience.
|
|
4
6
|
|
|
5
7
|
# EXPERIMENTAL
|
|
6
|
-
The current status is experimental, and this first version is a refactor of webssh2 v0.2.x to be compatible with a refactor of the same version of webssh2 as a stand-alone server-side component
|
|
8
|
+
The current status is experimental, and this first version is a refactor of webssh2 v0.2.x to be compatible with a refactor of the same version of webssh2 as a stand-alone server-side component running Node.js v6.9.1.
|
|
7
9
|
|
|
8
10
|
The intention is to harmonize the latest release of webssh2 by splitting out the client and server as separate repos (webssh2-client and webssh2-server) but joining them both together as modules in a parent webssh2 in an attempt to provide backward compatibility.
|
|
9
11
|
|
|
@@ -75,15 +77,14 @@ window.webssh2Config = {
|
|
|
75
77
|
port: 22, // SSH server port
|
|
76
78
|
username: null, // SSH username (required for autoConnect)
|
|
77
79
|
password: null, // SSH password (required for autoConnect)
|
|
78
|
-
|
|
80
|
+
sshterm: 'xterm-color', // Terminal type
|
|
79
81
|
readyTimeout: 20000, // SSH connection timeout (ms)
|
|
80
82
|
},
|
|
81
83
|
header: {
|
|
82
84
|
text: null, // Custom header text
|
|
83
85
|
background: 'green', // Header background color
|
|
84
86
|
},
|
|
85
|
-
autoConnect: false
|
|
86
|
-
logLevel: 'info', // Logging level ('debug', 'info', 'warn', 'error')
|
|
87
|
+
autoConnect: false // Whether to connect automatically
|
|
87
88
|
};
|
|
88
89
|
```
|
|
89
90
|
|
|
@@ -235,20 +236,15 @@ The WebSSH2 client supports various URL parameters to customize the SSH connecti
|
|
|
235
236
|
- `header`: Custom text to display in the header.
|
|
236
237
|
- Example: `?header=My%20SSH%20Session`
|
|
237
238
|
|
|
238
|
-
- `
|
|
239
|
-
- Example: `?
|
|
240
|
-
|
|
241
|
-
### Debugging
|
|
242
|
-
|
|
243
|
-
- `logLevel`: Sets the logging level for debugging purposes.
|
|
244
|
-
- Example: `?logLevel=debug`
|
|
239
|
+
- `headerbackground`: Background color for the header.
|
|
240
|
+
- Example: `?headerbackground=red`
|
|
245
241
|
|
|
246
242
|
### Usage Example
|
|
247
243
|
|
|
248
244
|
A full URL with multiple parameters might look like this:
|
|
249
245
|
|
|
250
246
|
```
|
|
251
|
-
http://localhost:2222/ssh/host/192.168.1.100?port=2222&header=Production%20Server&
|
|
247
|
+
http://localhost:2222/ssh/host/192.168.1.100?port=2222&header=Production%20Server&headerbackground=red&fontSize=14&bellStyle=none
|
|
252
248
|
```
|
|
253
249
|
|
|
254
250
|
This URL would connect to a SSH server at 192.168.1.100 on port 2222, with a red header displaying "Production Server", using a 14px font size and turning off the audible bell.
|
package/client/public/client.htm
CHANGED