How to access raspberry with ssh

I have installed HA via https://www.home-assistant.io/getting-started/

I want to connect Egardia to Home Assistant. https://www.home-assistant.io/components/egardia/ shows how to.
In the advanced configuration I should run sudo python3 egardiaserver.py but I have no access to the command shell. How can this be enabled?

Install the SSH shell addon in HA. Then you should be able to ssh as root from your other puter.

Do you mean https://www.home-assistant.io/addons/ssh/?
I have done this but I only get the Hass.io Cli, so “sudo python3 egardiaserver.py” is not accepted.

A. Inside the ssh add-on you’re running as root so sudo isn’t going to work.

B. You may not even have Python installed in ssh. I don’t use hassio so I can’t check.

C. Where is the file located? Are you in the same directory or running the full path of the file?

D. Do you need to run it on the ha server? What does the Python file do? You can usually run Python anywhere.

Okay, I didn’t notice the hassbian installation mode. With this install the normal cli is available and python3 executable.

Based on the link to the component you are trying to integrate, it appears you can run that python script on any machine on the network that has python.