In the following example the user, SSH public key and passwordless sudo access have been configured.
If you are intending to host anything publicly then don't forget to expose more than port 22
when creating the app.
The jdeathe/centos-ssh image comes pre-installed with the Vagrant public key which requires the well-known insecure private key. This allows for testing without needing to generate a secure public/private key pair however it is recommended that you do not use this on any public facing installations and you run the container with SSH_AUTHORIZED_KEYS
populated with your own public key.
To generate a public private key pair on Mac OSX or Linux use ssh-keygen
and on Windows hosts use puttygen.exe
if using the putty SSH client.