Re: port forwarding

From: Dave Markham (dave.markham_at_fjserv.net)
Date: 01/19/04

  • Next message: Istvan Viczian: ""PAM rejected by account configuration" and "fatal: monitor_read: unsupported request: 24" problem at secong sshd instance"
    To: "Ed J. Aivazian" <stealth@arminco.com>, "Payal Rathod" <payal-ssh@staticky.com>
    Date: Mon, 19 Jan 2004 17:37:43 -0000
    
    

    I think you need his ip instead of 127.0.0.1. It has been ages since I done
    this but I have a note of doing it like this :-

    ssh -l <user> -f -N -T -L 2000:<remote machine>:<remote port> <remote
    machine>

    Then connected my browser to localhost:2000

    The -L is your listening port and forwarding it to <remote machine>:<remote
    port> , then the remote host to create the tunnel too.

    May be worth a try
    Dave

    ----- Original Message -----
    From: "Ed J. Aivazian" <stealth@arminco.com>
    To: "Payal Rathod" <payal-ssh@staticky.com>
    Cc: <secureshell@securityfocus.com>
    Sent: Friday, January 16, 2004 9:01 AM
    Subject: Re: port forwarding

    > Hello Payal,
    > Looks nice..
    > let's take another matter, are there strong reasons for using squid
    > through ssh tunel?
    > If no, configure your browser to use his proxy server directly.
    > If yes, try telnet-ing to his <ip> 3128. If you still have 'connection
    > refused' there is no daemon to listen tcp 3128.
    > Else, there does not seem to be any other explanation.
    > Note: if you wish ssh to bind to all the interfaces you have on your
    > machine, not only localhost, you should use -g option.
    >
    > Thursday, January 15, 2004, 7:20:08 PM, you wrote:
    >
    > PR> Hi,
    > PR> A friend of mine and me are trying to use port forwarding so that I
    can
    > PR> use his server for browsing the net. He has Mandrake Linux, squid and
    ssh
    > PR> installed. We both are very fresh to ssh.
    > PR> His squid runs on port 3128.
    > >>From my machine I did,
    > PR> ssh -2 -C -l payal -L 1080:127.0.0.1:3128 <ip>
    > PR> and logged to his machine. Then I fired up my browser and pointed the
    > PR> proxy to 127.0.0.1:1080. But when I type any URL I get in the windows
    > PR> where I had ssh running,
    > PR> channel 2: open failed: connect failed: Connection
    > PR> refused
    > PR> channel 2: open failed: connect failed: Connection refused
    > PR> channel 2: open failed: connect failed: Connection refused
    > PR> channel 2: open failed: connect failed: Connection refused
    >
    > PR> What is wrong? I am using Mandrake 9.2. Thanks a lot and eagerly
    waiting
    > PR> for some input on this.
    >
    > PR> With warm regards,
    > PR> -Payal
    >
    >
    >
    >
    >
    >
    > --
    > Best regards,
    > Ed mailto:stealth@arminco.com
    >


  • Next message: Istvan Viczian: ""PAM rejected by account configuration" and "fatal: monitor_read: unsupported request: 24" problem at secong sshd instance"

    Relevant Pages

    • Re: port forwarding
      ... configure your browser to use his proxy server directly. ... if you wish ssh to bind to all the interfaces you have on your ... He has Mandrake Linux, squid and ssh ... PR> channel 2: open failed: connect failed: Connection refused ...
      (SSH)
    • Re: Protecting Squid Proxy Server
      ... it from machines you have some control over, set up port forwarding ... using ssh, i.e. ssh to your home machine and forward port 3128 on the ... current host to localhost:3128 on the far end which is where the squid ... The advantage is that you get authentication, ...
      (alt.os.linux.suse)
    • RE: Question on how to set up client browser -> DMZ machine -> po rt f orwarded to port 80 on
      ... ssh port forwarding, or at least redirect input and output, to the client's ... web browser. ... > through SSH ... Both Linux bases ssh and windows based such as putty.exe will ...
      (SSH)
    • 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)
    • 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)