Bugfixes around ssh key generation for containers and repositories