-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
Description
I am trying to disable the SSH onion address in my Nix-Bitcoin setup, but it remains active despite setting nix-bitcoin.onionServices.sshd.enable = false;.
Even after rebuilding the system with nixos-rebuild switch, I can still see the SSH onion directory at /var/lib/tor/onion/sshd/, and Tor continues to serve SSH over the onion network.
Steps to Reproduce
- Set the following in
/etc/nixos/configuration.nix:nix-bitcoin.onionServices.sshd.enable = false; services.tor.onionServices.sshd.enable = false; # is not working at all, gives me a build error after running nixos-rebuild switch
- Run:
sudo nixos-rebuild switch --show-trace
- Check if SSH Onion Service is still active:
sudo ls -al /var/lib/tor/onion/
- The output still shows
sshdexists.
- The output still shows
- Restart Tor and check logs:
sudo systemctl restart tor.service journalctl -u tor.service -n 50 --no-pager | grep ssh- Tor still seems to recognize SSH as an onion service.
Observed Behavior
- The SSH onion service remains active even though I explicitly disabled it in my configuration.
nixos-option nix-bitcoin.onionServices.sshd.enableconfirms that it is set tofalse, but the service still exists.
Expected Behavior
- The SSH onion service should be completely disabled after setting
nix-bitcoin.onionServices.sshd.enable = false;and rebuilding the system.
Debugging Information
nixos-option nix-bitcoin.onionServices.sshd.enableoutput:Value: falsesudo ls -al /var/lib/tor/onion/output:drwx------ 6 tor tor 4096 Feb 9 10:28 . drwx------ 4 tor tor 4096 Feb 9 10:39 .. drwx------ 3 tor tor 4096 Jan 31 20:22 bitcoind drwx------ 3 tor tor 4096 Feb 2 22:34 electrs drwx------ 3 tor tor 4096 Feb 3 20:38 mempool-frontend drwx------ 3 tor tor 4096 Feb 9 10:28 sshdjournalctl -u tor.service -n 50 --no-pager | grep sshoutput:[Tor logs still show sshd being served]
System Information
- NixOS Version:
24.11 - Nix-Bitcoin Version:
0.0.118 - Tor Version:
0.4.8.13 - Deployment Method:
nixos-rebuild
Possible Causes
secure-node.nixmight be overriding the SSH onion setting.services.tor.relay.onionServices.sshdmight still be enabled somewhere.- A cached Tor configuration might be reloading the old settings.
Question
- How can I permanently disable the SSH onion service?
- Is there an additional override I need to set?
- Could there be a bug preventing
nix-bitcoin.onionServices.sshd.enable = false;from being applied correctly?
Thanks in advance for any guidance!
Metadata
Metadata
Assignees
Labels
No labels