1 year ago

#237578

test-img

whitebear

How to install sshd on the docker file which starts from python

I have python image file

FROM python:3.9.5
ENV PYTHONUNBUFFERED 1

RUN apt-get update && apt-get install -y netcat

WORKDIR /usr/src/app

I can make it work on local and can login

docker exec -it {container_id} bash

Now, I am running it on aws fargate

I need to login the ssd of this container, from ec2.

How can I start sshd?

in container on local

ps aux | grep sshd

May be there is no sshd is installed? -> So do I need to install sshd by myself?

Where ths sshd key should be stored?? -> there is no directory under /home.

docker

sshd

0 Answers

Your Answer

Accepted video resources