Updated README
This commit is contained in:
+5
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user