标签: telnet

在 11.10 中,telnet 拒绝网络上任意端口上的流量

我写了一个python脚本来监听2626端口并执行脚本。

本地主机正在监听的证明

tcp        0      0 127.0.0.1:2626          0.0.0.0:*               LISTEN
Run Code Online (Sandbox Code Playgroud)

我可以使用以下命令通过 telnet 连接到本地主机上的这个端口:

:~$ telnet localhost 2626
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试从远程机器连接时,连接被拒绝。

 :~$ telnet 128.251.xxx.xxx 2626
 Trying 128.251.xxx.xxx...
 telnet: Unable to connect to remote host: Connection refused
Run Code Online (Sandbox Code Playgroud)

我什至发出以下命令来接受端口 2626 上的流量:

 sudo iptables -A INPUT -p tcp -i eth0 --dport 2626 -j ACCEPT
Run Code Online (Sandbox Code Playgroud)

端口 2626 上的 telnet 拒绝来自远程机器的连接的原因可能是什么,我该如何解决?

remote-access 11.10 localhost telnet

3
推荐指数
2
解决办法
2529
查看次数

如何在 Ubuntu 服务器上禁用 telnet?

我安装了 Ubuntu 服务器,我正在学习它的安全性。

我看到的一篇文章是关于 telnet 以及如何在 CentOS 上禁用它

显然,它在 Ubuntu 上不起作用,那么如何在 Ubuntu 服务器上禁用 Telnet?

ll /etc/xinetd.d/telnet
ls: cannot access /etc/xinetd.d/telnet: No such file or directory
Run Code Online (Sandbox Code Playgroud)

telnet

3
推荐指数
1
解决办法
8548
查看次数

如何启用telnet服务器

我按照这些说明进行操作,但是在执行telnet localhostor 时telnet localhost 23,得到unable to connect to remote host: connection refused. 我也关闭了防火墙:sudo ufw disable.

这样做时sudo /etc/init.d/xinetd status我变得活跃(跑步)

我可以telnet上网,例如telnet google.com 80(我知道这是telnet客户)

更多信息:版本 18.04.1 TLS,在Oracle VM VirtualBox上运行。

telnet 18.04

3
推荐指数
1
解决办法
2万
查看次数

SSH 和 Telnet 连接被拒绝

如果我尝试通过 ssh 或 telnet 连接到 Ubuntu 服务器,并且两个连接都被拒绝或拒绝!

我可以ping通服务器,关闭防火墙。

我应该采取哪些故障排除步骤?

(我离服务器很远,所以控制台解决方案不可用)。

server ssh connection telnet

1
推荐指数
1
解决办法
6万
查看次数

为什么命令 telnet 响应奇怪?

我 4 年前通过网络课程大学,我有一个可能是业余的问题,请帮助我..我在 vmware 上有 ubuntu。我使用以下命令:

telnet google.com 80
Run Code Online (Sandbox Code Playgroud)

它回应:

正在尝试 74.125.195.139... 已连接到 google.com。转义字符是“^]”。

然后我输入ls命令:它返回!

HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=UTF-8
Content-Length: 1555
Date: Wed, 27 Jan 2016 12:53:29 GMT
Server: GFE/2.0

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 400 (Bad Request)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen …
Run Code Online (Sandbox Code Playgroud)

command-line networking telnet https

0
推荐指数
1
解决办法
916
查看次数