SSH fails to proxy through local Tor Browser with âcan't resolve hostâ
Clash 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.
proxy
 |Â
show 1 more comment
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.
proxy
1
Doesssh -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 thetor-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
 |Â
show 1 more comment
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.
proxy
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
proxy
asked Aug 8 at 16:48
hpy
1,93253360
1,93253360
1
Doesssh -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 thetor-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
 |Â
show 1 more comment
1
Doesssh -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 thetor-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
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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