Skip to content
/ telepy Public

A Django-based web application for managing and monitoring the reverse SSH tunnels or jump servers.

License

Notifications You must be signed in to change notification settings

NatLee/telepy

Repository files navigation

Telepy

ui terminal

A web application for managing and monitoring the reverse SSH tunnels.

Usage

  1. Copy the .env.example to .env and change the environment variables.

  2. Generate keys for SSH server.

./telepy.sh keygen
  1. Build and run the Docker container.
docker-compose up
  1. (Optional) Create a superuser for Django admin.

Be aware that the first user created will be the superuser whatever the method you use. See this function for more details. So, if you want to login with Google account, just visit the login page and login with Google account.

You need to check the script ./dev-create-superuser.sh and change the username and password if you want.

./telepy.sh create-superuser
  1. Go to http://localhost:<YOUR_WEB_SERVER_PORT>/login, it will show the login page.

API Documentation

If you want to see the API documentation, you need to login first.

  1. Go to http://localhost:<YOUR_WEB_SERVER_PORT>/api/__hidden_admin/ and login with the superuser.

  2. Go to http//localhost:<YOUR_WEB_SERVER_PORT>/api/__hidden_swagger and you will see the Swagger.

Misc

There are some scripts in the dev-scripts directory.

You can just use ./telepy.sh to run the scripts.

Usage: ./telepy.sh sub-command [args]
Sub-commands:
  keygen: Generate SSH keys for Telepy service.
  create-superuser: Create an admin account for Telepy management.
  shell: Create a shell to run arbitrary command.
  ipython: Create a shell to run ipython.
  supervisorctl: Attach to supervisor control shell.
  ssh-shell: Similar to 'shell', but for ssh container.
  migration: Run migration process.
  backend-debug: Recreate and attach to backend container.
  collect-static: Collect static files to increase rendering speed.
  django-startapp: Create a new Django app.

Contributors

Nat Lee
Nat Lee
H. Alice
H. Alice
Boris Lok
Boris Lok

License

MIT