Giter Club home page Giter Club logo

darkshell's Introduction

Use this tool to deploy an SSH service and make it accessible through Tor.

Usage (server)

Install docker and docker-compose:

apt install docker.io docker-compose -y

Optional step - set SSH credentials (darkshell will use default ones if you omit this step):

export DARKSHELL_USER="scrubbed"
export DARKSHELL_PASS="scrubbed"

Build and run darkshell:

docker-compose -f ./devops/docker-compose.yml build
docker-compose -f ./devops/docker-compose.yml up --detach

Once the server starts, you should see the onion hostname printed in the logs.

Note: you can use the following command for reading the logs:

docker logs darkshell

You might need to wait a few minutes before darkshell becomes reachable.

Usage (client)

Install tor and ncat:

apt update
apt install tor ncat -y

Start the Tor service:

systemctl start tor

Add the following statement with the hostname to your local SSH config (~/.ssh/config):

# Media host as Tor hidden service
host hidden
  hostname <your_onion_hostname>
  Compression yes
  Protocol 2
  PreferredAuthentications password
  proxyCommand ncat --proxy 127.0.0.1:9050 --proxy-type socks5 %h %p

Access the service via Tor using the password hexenbucht:

ssh hexenbucht@hidden

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.