diff --git a/README.md b/README.md index 2fffb4cc..257b30a6 100644 --- 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 index 28835b50..51c089cf 100644 --- 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 index 355fcec7..b83d49c2 100644 Binary files a/preview/login.png and b/preview/login.png differ