> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.keepsec.ca/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# KPS - How can I connect inside a container as root?


### Procedure to connect as root on a KPS container
With our KPS, the best way to connect into a container is to deploy a Portainer on the KPS instance.

###### Create a portainer container
* Go into the app store
* Search for `Portainer`
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_1b99t88.png)
* Deploy the `Portainer` service

###### Configure Portainer container
* Enable `Websocket support` in HTTP Settings of the application configuration
* Save & Restart the app
* Wait 60 seconds for the service to restart
* Enable HTTPS and add your custom domain in HTTP Settings of the application configuration
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_18lpew6.png)

###### Connect to Portainer and ssh into a container
* Go to you portainer web server url
* Create your admin credentials for portainer
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_gv15kw.png)
* Go to Home and Click on `Live connect` on local
* In the left menu, navigate to containers
* Use the shell quick action to connect to the container of your choice
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_1iigfgr.png)
* Use the correct Command ans User, try first with `/bin/bash` and if it is not working try `/bin/sh`. Use the user of your choice, if you require privileged in the container use root
* Connect to the container
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_o0hzwx.png)
![](https://storage.crisp.chat/users/helpdesk/website/e0874bac78183000/image_1333w2z.png)