Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1de122e659 | |||
| 1b9dd87efb | |||
| 668dd05eac |
@@ -2,6 +2,7 @@
|
|||||||
before using the plugin those steps were made on a linux machine not sure about windows
|
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
|
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*|
|
# How to setup on |*ssh server in linux*|
|
||||||
* create user in your system using the command provided below
|
* create user in your system using the command provided below
|
||||||
|
|||||||
@@ -40,10 +40,7 @@ public class AppleTunneler extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
File[] files = file.listFiles();
|
File[] files = file.listFiles();
|
||||||
|
|
||||||
if (files == null) {
|
if (files == null || files.length == 0) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (files.length == 0) {
|
|
||||||
getLogger().warning("no Identities files found, please put them in " + file.getPath());
|
getLogger().warning("no Identities files found, please put them in " + file.getPath());
|
||||||
throw new RuntimeException("no Identities files found");
|
throw new RuntimeException("no Identities files found");
|
||||||
}
|
}
|
||||||
@@ -63,6 +60,7 @@ public class AppleTunneler extends JavaPlugin {
|
|||||||
|
|
||||||
private void loadKnownHostFile() throws FileNotFoundException, JSchException {
|
private void loadKnownHostFile() throws FileNotFoundException, JSchException {
|
||||||
File knownHosts = new File(getDataFolder(), ".known_hosts");
|
File knownHosts = new File(getDataFolder(), ".known_hosts");
|
||||||
|
// check whatever known hosts file is folder somehow if so delete it.
|
||||||
if (knownHosts.isDirectory()) {
|
if (knownHosts.isDirectory()) {
|
||||||
knownHosts.delete();
|
knownHosts.delete();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# username for ssh
|
# username for ssh
|
||||||
username: apple
|
username: apple
|
||||||
# host eg: domains can be used.
|
# host eg: domains can be used.
|
||||||
|
# host: idk.example.com
|
||||||
host: 192.168.0.100
|
host: 192.168.0.100
|
||||||
# ssh port
|
# ssh port
|
||||||
port: 22
|
port: 22
|
||||||
|
|||||||
Reference in New Issue
Block a user