Updated README

This commit is contained in:
Sheng
2019-07-07 15:19:39 +08:00
parent d197133c95
commit 3ea76dcbe6
3 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -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);