commit 3ea76dcbe68aa996bb3b03d22638cafd3e94ff3c
parent d197133c95e274483925f89ca91d6ebe6f3828d9
Author: Sheng <webmaster0115@gmail.com>
Date: Sun, 7 Jul 2019 15:19:39 +0800
Updated README
Diffstat:
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
@@ -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);
diff --git a/README.rst b/README.rst
@@ -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);
diff --git a/preview/login.png b/preview/login.png
Binary files differ.