3

Running Firefox on a Mac. Debian SSHD running on remote computer. Firefox won't connect, not sure why.

I am able to ssh into the remote system on the command line on port 44. Do I need to change anything in sshd_config?

sshd_config on remote Debian system:

enter image description here

local Mac Firefox network settings (sorry for Japanese):

enter image description here

paperduck
  • 143
  • 7

1 Answers1

8

I feel that you are expecting firefox to connect to your Debian SSHD service directly?
If that's the case, your understanding of SSH tunnel is completely wrong.
You need to run ssh client on the client machine, to 1) connect to your server and 2) start a local socks proxy. Firefox would then connect to your local socks proxy.
See below diagram:

+--------------+         +---------------+         +---------------+
|  firefox on  |         |  ssh client on|         |    SSHD on    |
|  client pc   +---------+  client pc    +---------+    server     |
|              |         |               |         |               |
+--------------+         +---------------+         +---------------+

The command to start your ssh client would be something like

ssh your-user@yourserver -p 44 -D 7000

And then in your firefox preference, the proxy host would be localhost and proxy port would be 7000

SparedWhisle
  • 4,025
  • 1
  • 20
  • 30
  • 2
    And note that the ssh client provides only SOCKS proxy, _not_ regular HTTP proxy as in OP's screenshot. – u1686_grawity Sep 02 '20 at 05:43
  • Got it working. Removed the HTTP proxy; only SOCKS. Also changed to localhost in Firefox. Also had to set up port forwarding on my router at home for the port I want to use. – paperduck Sep 04 '20 at 00:29