Skip to content

Instantly share code, notes, and snippets.

View egeshi's full-sized avatar

Antony Repin egeshi

  • Odessa, UA
  • 20:35 (UTC +03:00)
View GitHub Profile
@udkyo
udkyo / Dockerfile
Last active March 7, 2024 21:22
Basic container for X11 forwarding goodness
FROM ubuntu
RUN apt update \
&& apt install -y firefox \
openssh-server \
xauth \
&& mkdir /var/run/sshd \
&& mkdir /root/.ssh \
&& chmod 700 /root/.ssh \
&& ssh-keygen -A \
&& sed -i "s/^.*PasswordAuthentication.*$/PasswordAuthentication no/" /etc/ssh/sshd_config \