Hi.
My name is Bharath and I recently bought the RPi model B+. Initially I connected it to my TV set and separate mouse and keyboards. But after learning about ssh and VNC, I started controlling it from my laptop.
But I started to face a problem. If I left the Pi running without interacting with it for some time and try to ssh or VNC to it after a while, it stops responding back. But the ethernet lights and the Power (red) LED keeps glowing without indicating any activity. I tried unplugging and reconnecting the LAN wire, pendrives, etc. but the only way was to unplug the power cord and restart the RPi.
This has been happening for some time and I am annoyed by this. Also worried that the improper shutdowns might harm the Pi.
Is there any way to keep this happening.

Looking forward for a solution.

Thank you.

Ps: I am running the latest release of Raspbian without using NOOBS on an 8GB SD card. I have only connected a Power source and an Ethernet wire to the Pi. Ask for any other details you want, but help me with a solution.