Is there a way to write in terminal in Ubuntu like if I was in my phone?

I am trying to find out how can I use terminal in my computer and be connected to my phone , so I can use my computer instead of my phone to write in terminal. Any help?

You have to enable developer mode

Then open terminal on your computer and ssh to your phone. (
For older phones ssh nemo@
For newer defaultuser@


thank yo so much for your help. It has works.