比较来自世界各地的卖家的域名和 IT 服务价格

无法实现新服务器的隧道 ubuntu 10.04

我刚安装了一个新服务器 10.04 我无法做出隧道工作。

本地机器

ssh -L 9090:localhost:9090 admin@xxx.xx.xx.xxx

成功登录,但在此隧道尝试到本地浏览器之后,

[url=http://127.0.0.1:9090]http://127.0.0.1:9090[/url]

echo在服务器终端上:

channel 3: open failed: connect failed: Connection refused


auth.log

:

sshd[24502]: error: connect_to localhost port 9090: failed.


iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination





9090

到服务器 (

links [url=http://xx.xxx.xx.xx:9090]http://xx.xxx.xx.xx:9090[/url]

在职的)


sshd_config

与前一台服务器相同 8.04, 工作正常。

怎么了?
已邀请:

喜特乐

赞同来自:

解决了:

这是一项政治政策。 在服务器终端请求服务 9090 没回答

telnet localhost 9090

只有在:

telnet 127.0.0.1 9090

该决定是将它添加到

/etc/hosts

.

127.0.0.1 localhost localhost.localdomain

小姐请别说爱

赞同来自:

基于
http://www.linuxquestions.org/ ... 2005/
我认为你的问题的原因就可以了 Apache, 但不是 sshd.

尝试更改指令 Listen 在文件中 httpd.conf 在

听 127.0.0.1:9090

重启后 httpd 并看看它是否改变了。

江南孤鹜

赞同来自:

详细的产出 (-vvv).

登陆成功。 在服务器终端上的本地浏览器的请求时,请访问隧道:

ebug1: Connection to port 9090 forwarding to localhost port 9090 requested.
debug2: fd 9 setting TCP_NODELAY
debug3: fd 9 is O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 3: open failed: connect failed: Connection refused
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9090 for localhost port 9090, connect from 127.0.0.1 port 57884, nchannels 4
debug3: channel 3: status: The following connections are open:
#2 client-session (t4 r0 i0/0 o0/0 fd 6/7 cfd -1)

debug3: channel 3: close_fds r 9 w 9 e -1 c -1

请注意港口 9090 回答

# links 127.0.0.1:9090

在工作机器上: (8.04)

根据要求:

debug1: Connection to port 9090 forwarding to localhost port 9090 requested.
debug2: fd 10 setting TCP_NODELAY
debug3: fd 10 is O_NONBLOCK
debug3: fd 10 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
debug2: channel 3: open confirm rwindow 2097152 rmax 32768
debug2: channel 3: rcvd eof
debug2: channel 3: output open -> drain
debug2: channel 3: obuf empty
debug2: channel 3: close_write
debug2: channel 3: output drain -> closed

尊敬 // T.

要回复问题请先登录注册