TLDR: I can SSH the onion address, but not the hostname that's CNAME'd to it.
I have the SSH server running as a Tor service, but I don't want to have to remember the onion address. I know I could just add the name to my SSH client config, but the purpose of this is to be able to access my computer when I'm borrowing someone else's, and obviously I don't want to mess too much with other people's settings. (And yes, these other computers are actually likely to have Tor already installed.) So I set up a hostname with a CNAME record pointing to the onion address. If I do torify ssh myaddress.onion
, it works fine, but torify ssh mydomain.com
results in:
1565911820 ERROR torsocks[31652]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_reply() at socks5.c:683)
ssh: Could not resolve hostname mydomain.com: Non-recoverable failure in name resolution
(And no, I did not literally type mydomain.com
; the error is edited.)
Doing dig -t CNAME mydomain.com
does return the onion address. All of my testing so far has been on the host machine itself (LUbuntu 18.04.3).