v2ray icon indicating copy to clipboard operation
v2ray copied to clipboard

使用vps 提供的地址和端口,ssh每次连接都提示 connection timed out

Open Frankietesttuuuu opened this issue 2 years ago • 1 comments

试过在服务器安装并开启 Open ssh 以及在计算机上打开防火墙,均无效。 什么原因?求解

Frankietesttuuuu avatar Aug 07 '23 13:08 Frankietesttuuuu

If you're experiencing connectivity issues with SSH on your server, it might be due to firewall rules blocking the default SSH port (22). To ensure that port 22 is open for incoming SSH connections, you can add an exception in the iptables rules:

# iptables -A INPUT -p tcp --dport 22 -j ACCEPT

If this doesn't work, the cause might be external to your server's configuration. Many VPS providers offer an external firewall service through their web control panels, try to allow TCP traffic on port 22 to see if it fixes the issue.

yzhou216 avatar Oct 19 '23 21:10 yzhou216