AppleTunneler/README.md

33 lines
1.5 KiB
Markdown
Raw Normal View History

2022-02-04 05:13:08 +00:00
# How to setup
2022-02-04 05:27:17 +00:00
* create user in your system using the command provided below
``useradd xrambad --shell=/bin/true``
this will make the user have no shell + sftp and scp access.
2022-02-04 05:13:08 +00:00
* create ssh key for the user.
2022-02-04 05:27:17 +00:00
* there will be issue that user can't login to fix this
2022-02-04 05:24:33 +00:00
add ``/bin/true`` to ``/etc/shells``
* start your minecraft server with the plugin installed.
but you will notice that it will not load the plugins as shown down below.
```
[09:16:17 WARN]: [AppleTunneler] no Identities files found, please put them in plugins/AppleTunneler/Identities
[09:16:17 ERROR]: Error occurred while enabling AppleTunneler v1.0-SNAPSHOT (Is it up to date?)
```
2022-02-04 05:25:49 +00:00
* place your user that you created private key into ``plugins/AppleTunneler/Identities`` folder
2022-02-04 05:24:33 +00:00
2022-02-04 05:25:49 +00:00
* start server again, but you will be met with another error as shown below
2022-02-04 05:24:33 +00:00
```
[09:20:16 ERROR]: [AppleTunneler] FILE at path: /home/test/Desktop/test-server/plugins/AppleTunneler/.known_hosts Does not exists
[09:20:16 ERROR]: Error occurred while enabling AppleTunneler v1.0-SNAPSHOT (Is it up to date?)
java.lang.RuntimeException: Known host file does not exists in plugin folder
```
as you can see the error created path for us which will be easy for us to create the file, now copy the path.
* run this command to create the host file
``ssh-keyscan limework.net >> /home/test/Desktop/test-server/plugins/AppleTunneler/.known_hosts``
* now modify the config of the plugins for your needs by setting host, port, username of ssh server and setting tunneling needed.
and done.