I have a fully updated Tor Browser set up on a fully updated Manjaro Linux system. I confirmed that the Tor Browser's built-in proxy at 127.0.0.1:9150 can be accessed by using it as a proxy for my regular web browser (yes, I know this is not recommended, I just did it as a test to make sure 127.0.0.1:9150 is available and working to proxy traffic through the Tor network).
I want to proxy my SSH connection through Tor Browser, so I tried to follow instructions such as this, which tells me to run this command:
ssh -o ProxyCommand='nc -x localhost:9150 %h %p' example.com
However, when running it I get this error:
Error: Couldn't resolve host "127.0.0.1:9150"
I also tried
localhost:9150 which gives the same error.
I guess the broader question is that given a local Tor proxy running on 127.0.0.1:9150, how do I tunnel my SSH connection through it (with the end goal of accessing Tor hidden services on the other side)?
Is my system blocking something or is my SSH command incorrect?
Thank you very much.