magicman5421
March 16th, 2008, 10:27 PM
ok so I've been messing around with setting up an ssh server and everything has gone well so far except i cant get port forwarding to work. well...it kind of works...but it doesnt. I'm using the command line to do the port forwarding with the command
ssh -L 5400:localhost:5400 me@my-desktop
That works fine and I can enter my password and I connect.
Then I go into firefox, Edit>Preferences, Advanced>Network>Settings. I set the html proxy to localhost on port 5400, i remove localhost (and 127.0.0.1 for good measure) from the "No proxy for" box, and press ok. i then try to go to google.com. I get a blank page. When i look in the terminal window that is still open, i see
channel 3: open failed: connect failed: Connection refused
as many times as I refreshed the page.
I put in AllowTcpForwarding yes in my /etc/ssh/sshd_config file by the way (and it still doesn't work).
What did I do wrong?
ssh -L 5400:localhost:5400 me@my-desktop
That works fine and I can enter my password and I connect.
Then I go into firefox, Edit>Preferences, Advanced>Network>Settings. I set the html proxy to localhost on port 5400, i remove localhost (and 127.0.0.1 for good measure) from the "No proxy for" box, and press ok. i then try to go to google.com. I get a blank page. When i look in the terminal window that is still open, i see
channel 3: open failed: connect failed: Connection refused
as many times as I refreshed the page.
I put in AllowTcpForwarding yes in my /etc/ssh/sshd_config file by the way (and it still doesn't work).
What did I do wrong?