尝试使用 telnet 时出现连接被拒绝错误,但不确定原因 [英] Getting a connection refused error when trying to use telnet and not sure why

查看:41
本文介绍了尝试使用 telnet 时出现连接被拒绝错误,但不确定原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图从假地址向我的弟弟发送一封电子邮件作为恶作剧,但我在使用 telnet 时遇到了一些问题,我不知道为什么它不起作用.我在 Mac 上使用终端,但我无法想象它有多大不同.这是我目前输入的内容.

I am trying to send an email to my little brother from a fake address as a prank, but I am having some trouble with telnet, and I can't figure out why it's not working. I'm using terminal on a Mac, but I can't imagine it's much different. Here's what I've typed in so far.

*omitted*:~ *omitted*$ nslookup
> set type=mx
> google.com
Server:     172.30.31.252
Address:    172.30.31.252#53

Non-authoritative answer:
google.com  mail exchanger = 30 alt2.aspmx.l.google.com.
google.com  mail exchanger = 40 alt3.aspmx.l.google.com.
google.com  mail exchanger = 50 alt4.aspmx.l.google.com.
google.com  mail exchanger = 10 aspmx.l.google.com.
google.com  mail exchanger = 20 alt1.aspmx.l.google.com.

... (some other stuff omitted)

*omitted*:~ *omitted*$ telnet aspmx.l.google.com 25
Trying 74.125.140.26...
telnet: connect to address 74.125.140.26: Connection refused
Trying 2607:f8b0:4002:c04::1b...
telnet: connect to address 2607:f8b0:4002:c04::1b: No route to host
telnet: Unable to connect to remote host

不幸的是,对于这里可能出现的问题,我已经完全用尽了我的想法.

Unfortunately, I have completely exhausted my ideas for what could be going wrong here.

我确定我没有打开防火墙.

I made sure I don't have my firewall on.

我尝试了 sudo pico inetd.conf,但文件完全是空白的 - 不知道在我的电脑上还能在哪里找到 telnet.

I tried sudo pico inetd.conf, but the file is completely blank - not sure where else I would find telnet on my computer.

排队的入站连接请求的积压肯定没有满,因为我一遍又一遍地得到同样的错误.

The backlog of queued inbound connection requests definitely isn't full because I've gotten the same error over and over again.

有人对我如何解决这个问题有建议吗?

Does anyone have suggestions for how I can fix this?

推荐答案

这是因为我需要使用更高的端口号.25 已被屏蔽.

It was because I needed to use a much higher port number. 25 was blocked.

这篇关于尝试使用 telnet 时出现连接被拒绝错误,但不确定原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆