Unable to ssh but able to ping to BBB over usb

I have been using my BBB attatched to the USB and connecting through an ssh client on linux for several days now, but today I couldn’t connect. When I try ssh root@192.168.7.2 there is no response for several minutes, not even an error message, I have to ctrl+C to go back to the prompt. I find it strange because I’m always able ping this IP as well as mount it normally, so I don’t think there is anything physically wrong with the connection or the BBB itself. On windows the same thing happens, I used to be able to ssh, but now, even though I can ping this IP, when I try ssh using putty, no response.