Skip to content

Commit

Permalink
Fix fatal SSH starting error & correct comment
Browse files Browse the repository at this point in the history
Fixed a fatal starting error that occurred when obtaining the example server-private-key value. this was removed for another reason, instead of being fixed:
using the system SSH rsa key could be considered bad practice due to the insecurities of using the same key twice. in the event someone (maybe by the web gui) gets the key, that same key can be used as a system console assuming SSH was enabled on the host machine.
  • Loading branch information
ZoeWithTheE authored Jul 26, 2024
1 parent 8b56769 commit de35cb0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ public SSHConfig() throws IOException, DuplicateKeyException, YamlReaderExceptio
"The generated file will be a .pub file, which contains the public key.",
"Example connection command: `ssh -i /path/to/private/key username@server-ip-address`");


String sshPath = OSUtils.IS_WINDOWS ? "%USERPROFILE%\\.ssh\\id_rsa" : "~/.ssh/id_rsa";
server_private_key = put("server-private-key")
.setComments(
"The private key used by the server to authenticate itself to the SSH console.",
Expand All @@ -105,7 +103,7 @@ public SSHConfig() throws IOException, DuplicateKeyException, YamlReaderExceptio
"In the same directory as the private key, there will also need to be a file with the same name and a .pub extension, which contains the public key.",
"NOTICE: The .ssh directory is not present by default, and must be created via the usage of the 'ssh-keygen' command.",
"Example:",
"server-private-key: " + sshPath);
"server-private-key: ./autoplug/id_rsa");

username = put(name, "username").setDefValues("autoplug")
.setComments(
Expand Down

0 comments on commit de35cb0

Please sign in to comment.