SSH'ing from a command line sensor or shell command

I’m running HA in a docker is there any way to get a shell working like how the addon works but without the addon
This seems to add sensors but not an interactive shell

Would like something like this