Need help installing SSH tunnel
From: Andre Hinrichs (hinrichs_at_mpia.de)
Date: 07/26/03
- Next message: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Previous message: Martin Pugh: "rsync over ssh using non standard ssh port"
- Next in thread: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Reply: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Reply: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Reply: Richard E. Silverman: "Re: Need help installing SSH tunnel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Jul 2003 16:54:22 -0700
Hi all!
Unfortunately, I've spent nearly a week of testing without any success.
I've read a lot of web sites related to SSH tunneling, but nothing really
helped.
Here is the problem:
First of all, let me say that a SSH connection to the remote machine is
fully functional, means the SSH server is up.
Second, I can do a telnet from the remote machine to the mail daemon on the
same machine means the mail daemon is up also.
Third, when I try to build a SSH tunnel, everything looks fine until I try
to telnet from the local machine over the SSH tunnel to the remote mail
daemon.
The command I used installing the tunnel is:
ssh -v remote.machine.com -L 25110:localhost:110 -L 25025:localhost:25 -4
Means I want to have a tunnel for SMTP and POP3. The ports on the local
machine are 25110 and 25025 which is OK. The command succeeds. I have a
shell on the remote machine and the debug mode says that the tunnel has
been successfully installed:
debug1: Connections to local port 25025 forwarded to remote address
localhost:25
But when I try to connect I get a "Connection refused" error:
Local machine:
>telnet localhost 25025
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
Remote machine (the tunnel connection):
channel 3: open failed: connect failed: Connection refused
debug1: channel_free: channel 3: direct-tcpip: listening port 25025 for
localhost port 25, connect from 127.0.0.1 port 1220, nchannels 4
What am I doing wrong? Do I need to configure something special?
Let me say, that I've already added 'AllowTcpForwarding yes' and
'GatewayPorts yes' to /etc/ssh/sshd_config
Any help is highly welcome, since I really need this connection.
Thanx to all
Andre
- Next message: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Previous message: Martin Pugh: "rsync over ssh using non standard ssh port"
- Next in thread: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Reply: Andre Hinrichs: "Re: Need help installing SSH tunnel"
- Reply: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Reply: Richard E. Silverman: "Re: Need help installing SSH tunnel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|