Skip to content

Instantly share code, notes, and snippets.

@so5
Last active July 1, 2021 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save so5/ab9eef0de1d6021289b999367e06501b to your computer and use it in GitHub Desktop.
Save so5/ab9eef0de1d6021289b999367e06501b to your computer and use it in GitHub Desktop.
FROM intel/oneapi-hpckit
WORKDIR /tmp
EXPOSE 22
# install sshd
RUN apt update &&\
apt install ssh x11-apps -y &&\
cd /etc/ssh &&\
sed -i -e '/PermitRootLogin/s/^.*$/PermitRootLogin yes/' \
-e '/X11UseLocalhost/s/^.*$/X11UseLocalhost no/' sshd_config &&\
mkdir /root/.ssh &&\
mkdir /run/sshd &&\
chmod 0755 /run/sshd &&\
echo . /opt/intel/oneapi/setvars.sh >> /root/.bashrc
CMD ["/usr/sbin/sshd", "-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment