Coder Social home page Coder Social logo

parisbite / pssht Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woutergritter/pssht

0.0 0.0 0.0 9 KB

A simple server to spawn SSH tunnels when servers are starting, and close them when servers are stopping on a pterodactyl node.

Java 100.00%

pssht's Introduction

Pterodactyl SSH Tunnels

A simple server to spawn SSH tunnels when servers are starting, and close them when servers are stopping on a pterodactyl node.

Support for UDP will be added in the future, however currently it only supports TCP through SSH tunnels.

Building

mvn clean compile assembly:single

HOW TO INSTALL (Using crontab and screen)

  1. Clone the repository
  2. Install java 11 and maven (apt install openjdk-11-jre-headless mvn)
  3. Build the server (cd pssht && mvn clean compile assembly:single)
  4. Open crontab crontab -e
  5. Insert @reboot screen -S pssht_server -dm bash -c "cd ~/PSSHT_LOCATION/target/ && java -jar pterodactylAPI-ssh-tunnels-1.0-SNAPSHOT-jar-with-dependencies.jar"
  6. Reboot

A screen called pssht_server with pssht running inside of it should now be running.

HOW TO USE

This server should be installed on a server which has access to the pterodactyl node(s). An obvious place would be the node itself.

Once you run the server once, it creates a config.properties file. Edit this to your suite needs. Make sure to copy SSH keys for the user tunnel-user on the server tunnel-remote.
This can be done with 2 easy steps:

  1. ssh-keygen -t rsa (if no ssh keys exist on the server yet)
  2. ssh-copy-id tunnel-user@tunnel-remote (copy the ssh key)

Now run the server, and it should work automagically.

pssht's People

Contributors

woutergritter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.