I found kind of a guide here HOWTO: How to access the Home Assistant OS host itself over ssh that is pretty good, but finally I made as suggested in a comment in the same thread that I posted, using the community terminal add-on, disabling the protected mode and works perfectly, I was able to access the container and remove the corrupted package from there, and the integration works again.