Allow logging in remotely to Home Assistant using SSH or just the web terminal with Ingress.
Setting up an SSH server allows access to your Home Assistant folders with any SSH client. It also includes a command-line tool to access the Home Assistant API.