Skip to content

Commit

Permalink
Merge pull request #260 from ZoeWithTheE/master
Browse files Browse the repository at this point in the history
Fix fatal SSH starting error & correct comment
  • Loading branch information
Osiris-Team authored Jul 27, 2024
2 parents 8b56769 + 6afeebd commit 22940c2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

import java.io.IOException;

import org.jline.utils.OSUtils;

import com.osiris.autoplug.client.tasks.SSHManager;
import com.osiris.dyml.Yaml;
import com.osiris.dyml.YamlSection;
Expand Down Expand Up @@ -93,9 +91,7 @@ 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")
server_private_key = put(name, "server-private-key")
.setComments(
"The private key used by the server to authenticate itself to the SSH console.",
"The file must be in the OpenSSH format.",
Expand All @@ -105,7 +101,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 22940c2

Please sign in to comment.