I want to send a command from a container to another container. Is it possible with SSH? If you have another method, please let me know.
You don't even need SSH. The kubernetes API can be used to execute commands in other containers (and stream input/output).
If you are not into go you can use the kubectl exec
command from your container that needs to execute a command in another one.
For both solutions you will need a properly setup ServiceAccount.