How to create a custom ssh shell in elixir?

Go to hex.pm and search for “ssh” and have a look at all the various packages. Maybe one of them already does what you want or something very similar.