LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-20-2010, 12:16 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 443

Rep: Reputation: 31
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.

Last edited by windstory; 07-20-2010 at 09:28 PM.
 
Old 08-02-2010, 10:07 AM   #2
lartman
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: RHEL
Posts: 22

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

Last edited by lartman; 08-02-2010 at 10:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MULTICAST address and port, socket listen only on port? jf.argentino Linux - Networking 2 03-09-2009 12:42 PM
Remote Login without port-forwarding? Murdock1979 Linux - Networking 1 10-03-2008 06:32 AM
Remote Admin port forwarding saifurab Linux - Networking 9 09-14-2007 02:47 AM
Forwarding ONE port to remote machine supertrout Linux - Networking 2 12-14-2004 10:02 PM
Remote Port Forwarding Question juxstapose Linux - Networking 1 08-01-2004 12:32 PM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration