4

我在 Windows 7 或 Windows 命令处理器上使用命令行。我正在尝试在端口 995 上连接到 gmail pop 服务器 (pop.gmail.com),因为这是我在其他网站上看到的。我至少想得到一个“+OK Hello there”的消息。这是我写的命令:

telnet pop.gmail.com 995

我没有得到任何答案。我究竟做错了什么?

4

1 回答 1

8

端口 995 用于 SSL 连接。你不能用 telnet 来做。您可能可以尝试 OpenSSL 并以这种方式进行测试。

openssl s_client -connect pop.gmail.com:995 -quiet

有关适用于 Windows 的 OpenSSL 的更多信息在这里: 适用于 Windows 的 OpenSSL

添加:

我刚刚用上面给你的 openssl 命令进行了测试。它就像一个魅力:

user@localhost$ openssl s_client -connect pop.gmail.com:995 -quiet
depth=1 /C=US/O=Google Inc/CN=Google Internet Authority
verify error:num=20:unable to get local issuer certificate
verify return:0
+OK Gpop ready for requests from 11.11.111.11 v45pf1517914yhk.21
于 2013-06-03T01:50:09.530 回答