Added correct example on how to configure Private Key for SSH Presets to README.md

This commit is contained in:
NI
2020-02-23 17:20:53 +08:00
parent 9b2513c89d
commit 6cd93a5457
2 changed files with 9 additions and 4 deletions

View File

@@ -199,6 +199,10 @@ Here is all the options of a configuration file:
// //
// Notice: You can use the same JSON value for `SSHWIFTY_PRESETS` if you are // Notice: You can use the same JSON value for `SSHWIFTY_PRESETS` if you are
// configuring your Sshwifty through enviroment variables. // configuring your Sshwifty through enviroment variables.
//
// Warning: Presets Data will be sent to user client WITHOUT any protection.
// DO NOT add any secret information into Preset.
//
"Presets": [ "Presets": [
{ {
// Title of the preset // Title of the preset
@@ -223,8 +227,9 @@ Here is all the options of a configuration file:
// Data for predefined Password field // Data for predefined Password field
"Password": "pre-defined-password", "Password": "pre-defined-password",
// Data for predefined Private Key field // Data for predefined Private Key field, should contains the content
"Private Key": "pre-defined-private-key", // of a Key file
"Private Key": "-----BEGIN RSA PRIV...\nMIIE...\n-----END RSA PRI...\n",
// Data for predefined Authentication field. Valid values is what // Data for predefined Authentication field. Valid values is what
// displayed on the page (Password, Private Key, None) // displayed on the page (Password, Private Key, None)
@@ -234,7 +239,7 @@ Here is all the options of a configuration file:
{ {
"Title": "Endpoint Telnet", "Title": "Endpoint Telnet",
"Type": "Telnet", "Type": "Telnet",
"Host": "endpoint.vaguly.com", "Host": "endpoint.vaguly.com:23",
"Meta": { "Meta": {
// Data for predefined Encoding field. Valid data is those displayed on // Data for predefined Encoding field. Valid data is those displayed on
// the page // the page

View File

@@ -36,7 +36,7 @@
"Meta": { "Meta": {
"User": "root", "User": "root",
"Encoding": "utf-8", "Encoding": "utf-8",
"Private Key": "--------- BEGIN RSA PRIVATE KEY ---------", "Private Key": "-----BEGIN RSA PRIV...\nMIIE...\n-----END RSA PRI...\n",
"Authentication": "Private Key" "Authentication": "Private Key"
} }
}, },