SSH fails to proxy through local Tor Browser with “can't resolve host”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Good day,



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.










share|improve this question

















  • 1




    Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
    – Tim Kennedy
    Aug 8 at 17:16






  • 1




    There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
    – Rui F Ribeiro
    Aug 8 at 19:13










  • @RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
    – hpy
    Aug 9 at 1:36










  • @TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
    – hpy
    Aug 9 at 1:37






  • 1




    Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
    – Rui F Ribeiro
    Aug 9 at 1:37














up vote
0
down vote

favorite












Good day,



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.










share|improve this question

















  • 1




    Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
    – Tim Kennedy
    Aug 8 at 17:16






  • 1




    There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
    – Rui F Ribeiro
    Aug 8 at 19:13










  • @RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
    – hpy
    Aug 9 at 1:36










  • @TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
    – hpy
    Aug 9 at 1:37






  • 1




    Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
    – Rui F Ribeiro
    Aug 9 at 1:37












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Good day,



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.










share|improve this question













Good day,



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.







proxy






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 8 at 16:48









hpy

1,93253360




1,93253360







  • 1




    Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
    – Tim Kennedy
    Aug 8 at 17:16






  • 1




    There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
    – Rui F Ribeiro
    Aug 8 at 19:13










  • @RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
    – hpy
    Aug 9 at 1:36










  • @TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
    – hpy
    Aug 9 at 1:37






  • 1




    Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
    – Rui F Ribeiro
    Aug 9 at 1:37












  • 1




    Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
    – Tim Kennedy
    Aug 8 at 17:16






  • 1




    There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
    – Rui F Ribeiro
    Aug 8 at 19:13










  • @RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
    – hpy
    Aug 9 at 1:36










  • @TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
    – hpy
    Aug 9 at 1:37






  • 1




    Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
    – Rui F Ribeiro
    Aug 9 at 1:37







1




1




Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
– Tim Kennedy
Aug 8 at 17:16




Does ssh -o CheckHostIp=no -o ProxyCommand='connect -4 -S localhost:9150 $(tor-resolve %h localhost:9150) %p' example.com work?
– Tim Kennedy
Aug 8 at 17:16




1




1




There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
– Rui F Ribeiro
Aug 8 at 19:13




There are simpler ways to use SSH. Could you explain better what exactly do you want to do?
– Rui F Ribeiro
Aug 8 at 19:13












@RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
– hpy
Aug 9 at 1:36




@RuiFRibeiro: I simply want SSH to use a proxy to make its connections. The Tor Browser acts as a local SOCKS proxy server through which I can tunnel my connections, and I'd like to tell SSH to use it. Does that make sense?
– hpy
Aug 9 at 1:36












@TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
– hpy
Aug 9 at 1:37




@TimKennedy: I tried running your suggestions, but I don't seem to have the tor-resolve command. I only have Tor Browser which is a portable package.
– hpy
Aug 9 at 1:37




1




1




Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
– Rui F Ribeiro
Aug 9 at 1:37




Could you explain better where you want to connect? The setup/what you are trying to do seems more complex than the necessary.
– Rui F Ribeiro
Aug 9 at 1:37















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461323%2fssh-fails-to-proxy-through-local-tor-browser-with-cant-resolve-host%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461323%2fssh-fails-to-proxy-through-local-tor-browser-with-cant-resolve-host%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?