Deploy an Open SHH server container#
The Portainer platform offers several pre-configured Stacks that can be deployed in the cluster, this is the case for example of Ubuntu SSH Server.

How to use it#
Click on the entry of the template you want to deploy in the cluster, and then add the required information inside the form. When you added all the information requires, you can finally click on Deploy the stack.

The required informations are:
- Your Stack's name: which must follows the Good Practices.
- The username to log into the machine using SSH.
- Your SSH Public Key. You can create your public-private SSH keys by using the command
ssh-keygenon unix-based systems. - The hostname of the server on which the container will be deployed, choose one among the available ones in the cluster.
- A flag to enable sudo access to your SSH account into the container.
- Your persistent volume name. It will be mounted under the folder
/persistentin the container. - The port on which expose the service.
Note
Note that the exposed port should not be one of the frequently used by known services (take a look at this).
Warning
If one of these information is missing, the container won't deploy correctly on the cluster.
Warning
If you want to save your data in the persistent volume, you have to save it under the /persistent folder, otherwise it will be lost after a container restart.