Some users don't have access to specific environments. Therefore they can't ssh into it.
For example, user don't have access to production but running this command will still provision a container for him:
ecsx console -c PROJECT-production
Proposal
Check if user have access to the environment before provisioning it.