Username get (#162)

* feat(auth): ssh private key auth implemented via config.json

If config.json is present and user.privatekey has an ssh-rsa private key defined as well as a user.name, the SSH server will staticlly authenticate to whatever host is specified on the URL with those credentials.

The ssh-rsa private key must have is line returns replaced with the litaral \n

Example: "-----BEGIN RSA PRIVATE KEY-----\nblahblahblah\n"

* docs:update README.com
This commit is contained in:
Bill Church 2019-11-15 17:34:13 -05:00 committed by GitHub
parent 342df8eb9c
commit 9a96637cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,20 +137,20 @@ docker run --name webssh2 -d -p 2222:2222 -v `pwd`/app/config.json:/usr/src/conf
* Default values: * Default values:
1. ecdh-sha2-nistp256 1. ecdh-sha2-nistp256 **(node v0.11.14 or newer)**
2. ecdh-sha2-nistp384 2. ecdh-sha2-nistp384 **(node v0.11.14 or newer)**
3. ecdh-sha2-nistp521 3. ecdh-sha2-nistp521 **(node v0.11.14 or newer)**
4. diffie-hellman-group-exchange-sha256 4. diffie-hellman-group-exchange-sha256 **(node v0.11.12 or newer)**
5. diffie-hellman-group14-sha1 5. diffie-hellman-group14-sha1
* Supported values: * Supported values:
* ecdh-sha2-nistp256 * ecdh-sha2-nistp256 **(node v0.11.14 or newer)**
* ecdh-sha2-nistp384 * ecdh-sha2-nistp384 **(node v0.11.14 or newer)**
* ecdh-sha2-nistp521 * ecdh-sha2-nistp521 **(node v0.11.14 or newer)**
* diffie-hellman-group-exchange-sha256 * diffie-hellman-group-exchange-sha256 **(node v0.11.12 or newer)**
* diffie-hellman-group14-sha1 * diffie-hellman-group14-sha1
* diffie-hellman-group-exchange-sha1 * diffie-hellman-group-exchange-sha1 **(node v0.11.12 or newer)**
* diffie-hellman-group1-sha1 * diffie-hellman-group1-sha1
* **cipher** - _array_ - Ciphers. * **cipher** - _array_ - Ciphers.
@ -160,21 +160,20 @@ docker run --name webssh2 -d -p 2222:2222 -v `pwd`/app/config.json:/usr/src/conf
1. aes128-ctr 1. aes128-ctr
2. aes192-ctr 2. aes192-ctr
3. aes256-ctr 3. aes256-ctr
4. aes128-gcm 4. aes128-gcm **(node v0.11.12 or newer)**
5. aes128-gcm@openssh.com 5. aes128-gcm@openssh.com **(node v0.11.12 or newer)**
6. aes256-gcm 6. aes256-gcm **(node v0.11.12 or newer)**
7. aes256-gcm@openssh.com 7. aes256-gcm@openssh.com **(node v0.11.12 or newer)**
8. aes256-cbc **legacy cipher for backward compatibility, should removed :+1:**
* Supported values: * Supported values:
* aes128-ctr * aes128-ctr
* aes192-ctr * aes192-ctr
* aes256-ctr * aes256-ctr
* aes128-gcm * aes128-gcm **(node v0.11.12 or newer)**
* aes128-gcm@openssh.com * aes128-gcm@openssh.com **(node v0.11.12 or newer)**
* aes256-gcm * aes256-gcm **(node v0.11.12 or newer)**
* aes256-gcm@openssh.com * aes256-gcm@openssh.com **(node v0.11.12 or newer)**
* aes256-cbc * aes256-cbc
* aes192-cbc * aes192-cbc
* aes128-cbc * aes128-cbc
@ -191,7 +190,7 @@ docker run --name webssh2 -d -p 2222:2222 -v `pwd`/app/config.json:/usr/src/conf
1. hmac-sha2-256 1. hmac-sha2-256
2. hmac-sha2-512 2. hmac-sha2-512
3. hmac-sha1 **legacy hmac for backward compatibility, should removed :+1:** 3. hmac-sha1
* Supported values: * Supported values: