Re: port forwarding with ssh on linux

From: samjack (nospam_at_device.null)
Date: 10/27/03


Date: Sun, 26 Oct 2003 19:20:57 -0600

Try using the -D portnumber option to do dynamic port forwarding emulating
Socks proxy.
Then just point your web browser at the port declaring it a socks proxy
server.

ssh -l username -D 8000 cyberpass.net

"ed" <coo_t2-NO-LIKE-SPAM@yahoo.com> wrote in message
news:08pipvo51jgicgfv5rdbvf1g7ebo61l1v2@4ax.com...
>
>
> Hey all. I'm sort of a linux and ssh newbie. I've been using
> anonymizer.com's secure tunneling
> service on windows. On windows I use the teraterm pro ssh client.
> But I'm having trouble getting port forwaring to work on linux.
>
> Here's what I'm doing:
> $ ssh -l username -p 22 -L 80:cyberpass.net:80 cyberpass.net
> $ [ prompt for password ] [ enter password ]
>
> I'm logged in with the greeting message.
>
>
> Ok, now with mozilla I have manually configured the http proxy field
> to listen
> to localhost on port 80.
>
> Now when I go surfing I'm able to download from the web perfectly.
> Except that the traffic doesn't
> seem to be going through the remote server. It seems that the
> requests to web pages
> are being made directly with my ip address.
>
> Now if I kill the ssh process I'll get an error in my browser and am
> not able to
> download anything(until I change the mozilla configuration to work
> without a proxy).
>
> This is strange, it seems it's using the ssh client in one way, but
> not fully in the
> way that it's supposed to.
>
> Apache and an sshd process start by default on my Suse system so I
> kill them
> before I login to the remote ssh server.
> I've also deactived my Suse personal firewall.
> It still doesn't work right.
>
> I've also tried doing it as root and regular user.
>
> I'm using Suse 7.3 if that matters.
>
> Any help appreciated.
>
> -ed
>



Relevant Pages

  • Re: Port Forwarding over Unreliable Connections
    ... >I make extensive use of ssh port forwarding to access machines behind ... >patiently wait a long time before finally snipping the connection. ... two separate TCP connections when you do port forwarding, ...
    (comp.security.ssh)
  • using a SOCKS proxy from SSH
    ... How can I have SSH _use_ a SOCKS proxy to make a connection? ... I know it can _create_ a SOCKS proxy with the -D option or DynamicForward ... I can certainly direct SSH to a specific port. ...
    (comp.security.ssh)
  • SSH Tunneling and TCP_NODELAY
    ... I am using SSH port forwarding on a linux sshd from the Cygwin ssh. ... tunneling, as I have been using many port forwards (server ... If port forwarding is NOT used, the control stream is working well. ...
    (comp.security.ssh)
  • ssh port forwarding to web pages.
    ... I am attempting to set port forwarding to a web page on my company ... I am using PuTTY to ssh to the companies external facing ssh server ... The web page is on another server on the intranet. ...
    (comp.security.ssh)
  • Re: Connecting to MySQL on a Linux box from Borland JBuilder Foundation X
    ... I assume your client is running on a Windows box? ... You can set up an ssh ... port forwarding solution using, for example, PuTTY (a freely available ssh ... You would run PuTTY on your client machine, ...
    (comp.lang.java.databases)