mirror of https://github.com/huashengdun/webssh
Updated README
parent
d197133c95
commit
3ea76dcbe6
|
@ -15,6 +15,7 @@ A simple web application to be used as an ssh client to connect to your ssh serv
|
|||
* SSH password authentication supported, including empty password.
|
||||
* SSH public-key authentication supported, including DSA RSA ECDSA Ed25519 keys.
|
||||
* Encrypted keys supported.
|
||||
* Two-Factor Authentication(time-based one-time password) supported.
|
||||
* Fullscreen terminal supported.
|
||||
* Terminal window resizable.
|
||||
* Auto detect the ssh server's default encoding.
|
||||
|
@ -73,7 +74,7 @@ wssh --help
|
|||
|
||||
```javascript
|
||||
// connect to your ssh server
|
||||
wssh.connect(hostname, port, username, password, privatekey);
|
||||
wssh.connect(hostname, port, username, password, privatekey, passphrase, totp);
|
||||
|
||||
// pass an object to wssh.connect
|
||||
var opts = {
|
||||
|
@ -81,7 +82,9 @@ var opts = {
|
|||
port: 'port',
|
||||
username: 'username',
|
||||
password: 'password',
|
||||
privatekey: 'the private key text'
|
||||
privatekey: 'the private key text',
|
||||
passphrase: 'passphrase',
|
||||
totp: 'totp'
|
||||
};
|
||||
wssh.connect(opts);
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ Features
|
|||
- SSH public-key authentication supported, including DSA RSA ECDSA
|
||||
Ed25519 keys.
|
||||
- Encrypted keys supported.
|
||||
- Two-Factor Authentication(time-based one-time password) supported.
|
||||
- Fullscreen terminal supported.
|
||||
- Terminal window resizable.
|
||||
- Auto detect the ssh server's default encoding.
|
||||
|
@ -79,7 +80,7 @@ Browser console
|
|||
.. code:: javascript
|
||||
|
||||
// connect to your ssh server
|
||||
wssh.connect(hostname, port, username, password, privatekey);
|
||||
wssh.connect(hostname, port, username, password, privatekey, passphrase, totp);
|
||||
|
||||
// pass an object to wssh.connect
|
||||
var opts = {
|
||||
|
@ -87,7 +88,9 @@ Browser console
|
|||
port: 'port',
|
||||
username: 'username',
|
||||
password: 'password',
|
||||
privatekey: 'the private key text'
|
||||
privatekey: 'the private key text',
|
||||
passphrase: 'passphrase',
|
||||
totp: 'totp'
|
||||
};
|
||||
wssh.connect(opts);
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 60 KiB |
Loading…
Reference in New Issue