M4 Mac mini drops SSH connection in local network
I am trying to ssh into a ubuntu machine through M4 Mac mini from the terminal i.e. `ssh user@ip`. But it randomly drops the connection. When I ping ubuntu IP address, I see same behavior i.e. it sometime stays stable and then randomly drops for a long time and then comes back.
I thought it is the issue with ubuntu machine, but if I ssh or ping from windows it remains stable through out.
And it seems that the issue is not just with ubuntu. If I try to ping my Mac mini IP through either windows/ubuntu then also the connection drops.
I tried turning on/off firewall in Mac but still same issue.
Here is the output of ping to ubuntu machine from Mac mini:
ping 192.168.0.111
PING 192.168.0.111 (192.168.0.111): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
ping: sendto: No route to host
Request timeout for icmp_seq 4
ping: sendto: Host is down
Request timeout for icmp_seq 5
^C
--- 192.168.0.111 ping statistics ---
7 packets transmitted, 0 packets received, 100.0% packet loss
Please help me to solve this issue.