Add sshd onion service

This commit is contained in:
Jonas Nick 2018-12-27 21:22:52 +00:00
parent 566f308aa8
commit ffcd311b70
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
2 changed files with 14 additions and 0 deletions

View File

@ -63,6 +63,14 @@ in {
services.tor.enable = true; services.tor.enable = true;
services.tor.client.enable = true; services.tor.client.enable = true;
# Tor SSH service
services.tor.hiddenServices.sshd = {
map = [{
port = 22;
}];
version = 3;
}
# bitcoind # bitcoind
services.bitcoind.enable = true; services.bitcoind.enable = true;
services.bitcoind.listen = true; services.bitcoind.listen = true;

View File

@ -22,3 +22,9 @@ if [ -e "$SPARKWALLET_ONION_FILE" ]; then
SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)" SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)"
echo SPARKWALLET_ONION="http://$SPARKWALLET_ONION" echo SPARKWALLET_ONION="http://$SPARKWALLET_ONION"
fi fi
SSHD_ONION_FILE=/var/lib/tor/onion/sshd/hostname
if [ -e "$SSHD_ONION_FILE" ]; then
SSHD_ONION="$(cat $SSHD_ONION_FILE)"
echo SSHD_ONION="$SSHD_ONION"
fi