LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Warning: remote port forwarding failed for listen port 7869 (https://www.linuxquestions.org/questions/linux-newbie-8/warning-remote-port-forwarding-failed-for-listen-port-7869-a-821043/)

windstory 07-20-2010 12:16 PM

Warning: remote port forwarding failed for listen port 7869
 
I tried to make "ssh tunneling", but failed and got this message.

Quote:

Administrator@windstory-PC /
$ ssh -R 7869:localhost:7869 windowsstudy@192.168.0.4
windowsstudy@192.168.0.4's password:
Warning: remote port forwarding failed for listen port 7869
Last login: Wed Jul 21 01:56:04 2010 from 192.168.0.2
-bash-3.2$
1. system environment
192.168.0.2 - windows 7 + copssh
192.168.0.4 - centos 5.4 x86 + openssh

2. Guide for setting "ssh tunneling"
http://test.nth-design.com/2009/02/1...utty-tutorial/

3. Added this to sshd.conf
Quote:

AllowTcpForwarding yes
4. "netstat -na|grep 7869" at 192.168.0.4

Quote:

[root:maestro:~]# netstat -na|grep 7869
tcp 0 0 0.0.0.0:7869 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:7869 127.0.0.1:53539 ESTABLISHED
tcp 0 0 127.0.0.1:58027 127.0.0.1:7869 ESTABLISHED
tcp 0 0 127.0.0.1:58028 127.0.0.1:7869 ESTABLISHED
tcp 0 0 127.0.0.1:53539 127.0.0.1:7869 ESTABLISHED
tcp 0 0 127.0.0.1:7869 127.0.0.1:58028 ESTABLISHED
tcp 0 0 127.0.0.1:7869 127.0.0.1:58027 ESTABLISHED
5. result of "ssh -vvv -R 7869:localhost:7869 windowsstudy@192.168.0.4"
Quote:

debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
windowsstudy@192.168.0.4's password:
debug3: packet_send2: adding 48 (len 69 padlen 11 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: Remote connections from LOCALHOST:7869 forwarded to local address localh
ost:7869
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug1: remote forward failure for: listen 7869, connect localhost:7869
Warning: remote port forwarding failed for listen port 7869
debug1: All remote forwarding requests processed
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Wed Jul 21 02:28:20 2010 from 192.168.0.2
-bash-3.2$
6. I added 7869 for telnet service as follow;
Quote:

mytelnet 7869/tcp # My Telnet server
Pleas let ke know hot to solve this "ssh tunneling"
Thanks in advance.

lartman 08-02-2010 10:07 AM

ssh can't open port 7869 on the remote system because, as netstat shows, the port is already opened by some other process.


All times are GMT -5. The time now is 03:07 PM.