On Fri, Oct 27, 2000 at 02:36:20PM -0400, Sun M. account wrote:
| I am setting up OpenSSH_2.2.0p1 in my testing environment. One thing I
| like to use ssh is to build a TCP tunnel with this command:
|
| hostC:\>ssh -R listen-port:hostA:22 HostB so, the hostB will open a listen
| port and hostC will connect to hostB's listen port with ssh in order to
| login to HostA. But every time when I ran this command the listen port
| open for localhost only:
|
| localhost.2222 *.* 0 0 0 0 LISTEN
|
| Is there any thing wrong in my config file or OpenSSH_2.2.0p1 cannot
| support this feature.
Port 22 (and all ports < 1024) are priviledged: only root can listen on
them. Unless your tunnel ssh is entering HostB as root the sshd at the
far end will not be able to open port 22 for listening, thus the
behaviour you see. Just use port 2222 or suchlike at the far end. Works
for me.
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
The only thing necessary for the triumph of evil is for good men to do nothing.
- Edmund Burke (1729-1797)