简体   繁体   English

腻子隧道:中继访问被拒绝

[英]Putty tunnel: Relay access denied

I will try to connect I logged on locally (127.0.0.1) on Putty. 我将尝试连接在Putty上本地登录的(127.0.0.1)。 Then I try to connect through the tunnel to the remote server. 然后,我尝试通过隧道连接到远程服务器。

I get a "Relay access denied" error. 我收到“拒绝中继访问”错误。 How can I solve it? 我该如何解决?

To get an SSH tunnel established: 要建立SSH隧道,请执行以下操作:

In PuTTY, on the configuration screen go to Connection > SSH > Tunnels. 在PuTTY中,在配置屏幕上,转到“连接”>“ SSH”>“隧道”。 Set the source port to something like 2500 , which is actually localhost:2500 . 将源端口设置为2500东西,实际上是localhost:2500 Set Destination to mailserver.example.com:25 (SMTP port) for whatever is the hostname of your mail server. 将“目标”设置为mailserver.example.com:25端口)以获取邮件服务器的主机名。

Connect over SSH, and you have now established a tunnel to port 25 on the destination host. 通过SSH连接,您现在已经建立了到目标主机上端口25的隧道。

On your local machine, telnet to your local port, and you are now talking to port 25 on the remote machine. 在本地计算机上,远程登录到本地端口,现在您正在与远程计算机上的端口25通讯。

telnet localhost 2500

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM