Giter Site home page Giter Site logo

onion-ssh's Introduction

onion-ssh

SSH service that is published as a TOR hidden service for remote access purposes

Server

docker compose up -d --build

Retrieve the .onion address after starting the stack.

docker compose exec tor_service cat /var/lib/tor/hidden_service/hostname

Client

Create an .env file and add the variable ONION_ADDRESS with your specific hidden service address

Start the TOR proxy and build the client container

docker compose -f client.docker-compose.yml up -d --build

Wait a few seconds until the proxy has established a connection to the tor network. Check the logs if necessary. Then try using the client to access your hidden SSH server.

Example

Using the OpenSSH service as a jumphost. You first need to set AllowTcpForwarding yes inside /etc/ssh/sshd_conf within the ssh_server container. The configuration is persisted within a Docker volume by default.

docker compose -f client.docker-compose.yml run -it --rm ssh_client -J user@<hidden_service_hostname>.onion:2222 root@<internal_host>.local

After a few seconds you will be prompted to accept the SSH fingerprint

onion-ssh's People

Contributors

p3l1 avatar

Watchers

 avatar

onion-ssh's Issues

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.