今天用了telnet localhost 25命令,结果出现了一下结果:
$telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
不知道是怎么回事。在网上找了很多方法都试过了也不行。
$vim /etc/xinetd.d/telnet 设置以下:
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
其他的端口也都有问题,是不是我的ubuntu设置问题?
各位高手帮我看下。很急,谢谢!
telnet报错Unable to connect to remote host: Connection refused
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 24
- 注册时间: 2009-05-28 22:29
- goldfox_79
- 帖子: 2004
- 注册时间: 2005-10-16 8:26
- 来自: 地球
Re: telnet报错Unable to connect to remote host: Connection ref
netstat -napt,看系统有没有在监听25号端口先
-
- 帖子: 24
- 注册时间: 2009-05-28 22:29
Re: telnet报错Unable to connect to remote host: Connection ref
用这个命令看了下,结果如下goldfox_79 写了:netstat -napt,看系统有没有在监听25号端口先
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
激活Internet连接 (服务器和已建立连接的)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:6432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN -
tcp 0 0 10.0.5.93:60544 64.233.189.104:80 ESTABLISHED 3418/firefox
tcp 0 0 10.0.5.93:44165 64.233.189.104:80 ESTABLISHED 3418/firefox
tcp 0 0 10.0.5.93:60543 64.233.189.104:80 ESTABLISHED 3418/firefox
tcp 0 0 10.0.5.93:44335 173.212.231.48:80 ESTABLISHED 3418/firefox
tcp6 0 0 :::6432 :::* LISTEN -
tcp6 0 0 :::7432 :::* LISTEN -
tcp6 0 0 :::8432 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
请问这个是怎么回事?谢谢
-
- 帖子: 3173
- 注册时间: 2010-01-13 23:26
Re: telnet报错Unable to connect to remote host: Connection ref
端口没开。
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
-
- 帖子: 24
- 注册时间: 2009-05-28 22:29
Re: telnet报错Unable to connect to remote host: Connection ref
你好,那我怎么才能开这些服务呢?谢谢pocoyo 写了:服务没有开
-
- 帖子: 290
- 注册时间: 2010-09-22 22:44
Re: telnet报错Unable to connect to remote host: Connection ref
我也遇到了同样的问题。解决办法如下:
apt-get install telnetd (不是telnet)
安装完成后:
sudo /etc/init.d/xinetd restart
apt-get install telnetd (不是telnet)
安装完成后:
sudo /etc/init.d/xinetd restart