BigSur SSH can connect a server in the intranet but cannot connect to a internet server
I tried a lot of things to figure out why my SSH gives me the following message (I took out the IP address)
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxxxxx] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Operation timed out
I can connect to my VM, a server in my intranet (even inside VPN) without any issues.
But, every time I connect to a server over the internet. I got above message.
NOTE:
(1) the server is working. I use another laptop SSH to it. It is working fine.
(2) I do not have any firewall in my Macbook Pro.
Can anyone know how to fix my SSH?
Should I downgrade or upgrade my OS?
Can I reinstall SSH to fix this?
Thanks.
MacBook Pro 16″, macOS 11.6