问题原文
原帖链接 · Wardruna · CC BY-SA 3.0
I just bought a Windows Server 2012 on VPS.I can connect it using remote desktop and setup mongodb and access it.But i cannot seem to telnet or ssh to it using Putty.
Both ports are open and listening.Putty gives me 'Connection timeout error'.
Below are the screenshots
Port is open
Port is listening
已采纳解答
原帖链接 · bao7uo · CC BY-SA 3.0
I think it must be a firewall... could well be Windows firewall.
Try turning it completely off temporarily (if you are happy to!) to test. Run the following from an elevated (run as administrator) cmd prompt:
netsh a s a state off
If that is a work around that lets you ssh in then you have found the problem, so turn the firewall back on (again from elevated cmd prompt):
netsh a s a state on
Then you can try opening port 22 inbound using the following (elevated again):
netsh a f a r n="Open Port 22" d=in a=allow prot=TCP localp=22
That does it for all profiles.
If turning windows firewall off didn't let you ssh in, then still turn the firewall back on (obviously!). But it might be a firewall further upstream, like at your VPS provider's gateway.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
