Create SSH executor
For us to execute commands to a orka we need to connect to a VM via SSH.
Create a new ssh executor which will add support for macOS. This will be able to authenticate with a server via SSH run a script via STDIN and will be able to return the STDOUT/STDERR. The SSH key pair is something that is provided to it since it will be different for each VM.
The SSH executor should be responsible for providing the script to configure the machine to only accept the SSH key with the ProvisionScript which will be called by Provider.Create. So the logic should be something like:
- Create SSH key
- Create VM
- Deploy VM
ProvisionScript: Disable password
ProvisionScript: Update ssh config to only accept connection for the specified SSH key