Bruh! Please read this thread properly I already said that I can connect from windows so it's literally shows that my server is ok. and Please now don't ask me the below things I am not a nursery beginner I know and all the below things are valid in my case.
- Wrong port. Maybe you misread you PuTTY configuration.
- Locked out of your VPS because of too many failed connection attempts (firewall rules, Fail2ban)
- Port knocking daemon. Maybe your VPS firewall configuration requires you to send data to certain ports before the SSH ports opens. (not sure if PuTTY is that advanced though).
- VPN required. Perhaps you could connect to your VPS because it was tunnelled through a VPN connection which was activated on Windows, but not on Ubuntu.
- IP mismatch. Ensure that you are connecting to the same IP address. The IP address could change if you override it in
/etc/hosts(or the Windows equivalent) or have a strange DNS server. - Outbound blocking. You have a router that is very restrictive and had to add a rule for the Windows IP address to allow for connecting/forwarding to that SSH port. On your Linux installation, you got a different IP address.
