3 Commits

Author SHA1 Message Date
ham1255 1de122e659 Update 'README.md' 2022-07-09 12:46:47 +00:00
ham1255 1b9dd87efb added a comment 2022-06-17 06:47:01 +04:00
ham1255 668dd05eac fixed a mistake 2022-06-17 06:43:26 +04:00
3 changed files with 4 additions and 4 deletions
+1
View File
@@ -2,6 +2,7 @@
before using the plugin those steps were made on a linux machine not sure about windows
but those might work on any unix system like bsd or freebsd
And also this was made for shared hosting only, not meant on dedicated as you control the operating system
# How to setup on |*ssh server in linux*|
* create user in your system using the command provided below
@@ -40,10 +40,7 @@ public class AppleTunneler extends JavaPlugin {
}
File[] files = file.listFiles();
if (files == null) {
return;
}
if (files.length == 0) {
if (files == null || files.length == 0) {
getLogger().warning("no Identities files found, please put them in " + file.getPath());
throw new RuntimeException("no Identities files found");
}
@@ -63,6 +60,7 @@ public class AppleTunneler extends JavaPlugin {
private void loadKnownHostFile() throws FileNotFoundException, JSchException {
File knownHosts = new File(getDataFolder(), ".known_hosts");
// check whatever known hosts file is folder somehow if so delete it.
if (knownHosts.isDirectory()) {
knownHosts.delete();
}
+1
View File
@@ -3,6 +3,7 @@
# username for ssh
username: apple
# host eg: domains can be used.
# host: idk.example.com
host: 192.168.0.100
# ssh port
port: 22