Skip to content

Instantly share code, notes, and snippets.

View steve-gale's full-sized avatar

Steve steve-gale

  • Portland, OR
View GitHub Profile
@steve-gale
steve-gale / Dockerfile
Created August 11, 2020 18:37
Fargate SSH Debug (dev only)
# Install debug tools
RUN apt-get install -y openssh-server supervisor
RUN mkdir -p /var/run/sshd /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN mkdir /root/.ssh
RUN echo 'YOUR-PUBLIC-KEY-HERE' >> /root/.ssh/authorized_keys
RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
EXPOSE 22/tcp
# Use supervisor for running processes