SSH into a podman container am asked for a password

When i try to ssh into a container it asks for password

ssh erpnext@localhost 

This ask for password any solution for this

I don’t know if it’s about the environment or a container. May I ask why you need SSH?

To enter the environment, see also Rootless vs Rootfull | NS8 dev manual

runagent -m erpnext1

To enter the container:

podman exec -ti erpnext sh

EDIT:

It seems with Debian it’s still working to use ssh and enter the environment without password, with Rocky I’m asked for password.

1 Like
podman exec -ti erpnext5 sh

Error: no container with name or ID “erpnext5” found: no such container

To check the container names you can use

podman ps -a

You should get a result like the following, the last field shows the name:

[webserver3@ns8rockytest state]$ podman ps -a
CONTAINER ID  IMAGE                                    COMMAND               CREATED       STATUS       PORTS                                                                               NAMES
1ca4d3932493  localhost/podman-pause:5.2.2-1734474386                        21 hours ago  Up 21 hours  0.0.0.0:3092->2022/tcp, 127.0.0.1:20032->8080/tcp, 127.0.0.1:20033->80/tcp          ab928abd109a-infra
ceac4801c5f6  docker.io/library/nginx:1.27.3-alpine    nginx -g daemon o...  21 hours ago  Up 21 hours  0.0.0.0:3092->2022/tcp, 127.0.0.1:20032->8080/tcp, 127.0.0.1:20033->80/tcp, 80/tcp  nginx
024c238ee0f8  docker.io/drakkan/sftpgo:v2.6.4-alpine   sftpgo serve          20 hours ago  Up 20 hours  0.0.0.0:3092->2022/tcp, 127.0.0.1:20032->8080/tcp, 127.0.0.1:20033->80/tcp          sftpgo

So am trying to install this module and run some coommands inside the container

add-module ghcr.io/geniusdynamics/erpnext:latest 1

So i want to run some commands like

podman exec backend bench list-apps

There was a time i used to do:

ssh expnext5@localhost

and would be able to sun commands inside the container.

To work as user erpnext5:

runagent -m erpnext5

Now it should just work to run the command:

podman exec backend bench list-apps

It’s also possible in one line:

$ runagent -m erpnext5 podman exec backend bench list-apps

So instead of

ssh erpnext5@localhost

you can run

runagent -m erpnext5

as explained here.

EDIT:

BTW, the module settings apps selector is nice and it installed the chosen apps correctly.

[erpnext1@ns8rockytest state]$ podman exec backend bench list-apps

frappe
erpnext
2 Likes

Yeah thank you it has worked

1 Like