Linux Mint, ssh, iptables
I have been searching through other threads on this forum related to ssh.
I have tried to apply the commands from earlier threads and I get syntax errors. I am on Linux Mint; I am trying to connect to a server running Ubuntu Server. I want to forward ports. I have a rough idea that this ought to be possible because I saw that other people got it to work on a thread at: http://www.reddit.com/r/i2p/comments...outer/#chok15q That thread recommends using ssh -L Where the server's IP address is www.xxx.yyy.zzz, I have tried two versions of ssh: A) Code:
ssh -L 4444:127.0.0.1:4444 -L 4445:127.0.0.1:4445 -L 7567:127.0.0.1:7567 user@www.xxx.yyy.zzz Code:
ssh -R 4444:127.0.0.1:4444 -R 4445:127.0.0.1:4445 -R 7567:127.0.0.1:7567 user@www.xxx.yyy.zzz Code:
When I tried refreshing the page 127.0.0.1:4444 in IceCat, the Server prompt showed: Code:
user@sa0311:~$ channel 4: open failed: connect failed: Connection refused In both IceCat and the Mint Dashboard System Settings, I have the proxy enabled for both HTTP and SSH as 127.0.0.1:4444. However, when I try to view that page in the browser, nothing loads. When I try to view www.xxx.yyy.zzz:4444 in a browser, I get the following error: Code:
The proxy server is refusing connections I tried: Code:
sudo iptables -I INPUT 1 -i wlan0 -p tcp --tcp-flags SYN,RST,ACK SYN --dport 20000 -m conntrack --ctstate NEW -j ACCEPT because those commands appeared at: http://how-to.linuxcareer.com/i2p-an...for-the-masses and they returned no errors on the server and the client but nothing changed. Update: Following an example at: http://serverfault.com/questions/196...-ssh-tunneling I added Code:
AllowTcpForwarding yes This changed the errors at login from: Code:
channel 4: open failed: connect failed: Connection refused Code:
By modifying /etc/hosts to include 127.0.0.1 www.xxx.yyy.zzz the i2p console seems to come up correctly. The connections tend to time out, but that's probably because the bandwidth is not adequate. |
Glad you got it. I was going to mention /etc/hosts entry but after reading your update you seem to have got it. I'm simply making this post to remove your question from the zero reply threads list.
|
All times are GMT -5. The time now is 07:59 AM. |