>>>> and started to reboot everytime I tried to use the internet or ssh.
That sounds like a power problem to me.