webssh2_client 0.2.22 → 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,5 +1,7 @@
|
|
|
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
|
|
@@ -75,7 +77,7 @@ 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: {
|
|
@@ -234,15 +236,15 @@ The WebSSH2 client supports various URL parameters to customize the SSH connecti
|
|
|
234
236
|
- `header`: Custom text to display in the header.
|
|
235
237
|
- Example: `?header=My%20SSH%20Session`
|
|
236
238
|
|
|
237
|
-
- `
|
|
238
|
-
- Example: `?
|
|
239
|
+
- `headerbackground`: Background color for the header.
|
|
240
|
+
- Example: `?headerbackground=red`
|
|
239
241
|
|
|
240
242
|
### Usage Example
|
|
241
243
|
|
|
242
244
|
A full URL with multiple parameters might look like this:
|
|
243
245
|
|
|
244
246
|
```
|
|
245
|
-
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
|
|
246
248
|
```
|
|
247
249
|
|
|
248
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