Skip to content
Snippets Groups Projects
Commit cffa92b9 authored by Kay Graf's avatar Kay Graf
Browse files

add ssh server

parent c469d34c
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,14 @@ FROM centos:7.4.1708
RUN yum install -y gtk2-devel libX11 libX11-common libX11-devel libXext libXext-devel libXft libXft-devel libXpm libXpm-devel && yum clean -y all
RUN yum install -y doxygen ghostscript texlive texlive-*.noarch && yum clean -y all
RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz
RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz
RUN curl -L https://root.cern.ch/download/root_v5.34.36.Linux-centos7-x86_64-gcc4.8.tar.gz > root.tar.gz && tar xvf root.tar.gz -C /usr/local/ && rm root.tar.gz
RUN sed -i 's/-std=c++11//g' /usr/local/root/bin/root-config
RUN echo "source /usr/local/root/bin/thisroot.sh" >> /etc/bashrc
RUN echo "/usr/sbin/sshd" >> /ect/bashrc
RUN /usr/bin/ssh-keygen -A
RUN ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa -q
RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
RUN chmod og-wx ~/.ssh/authorized_keys
RUN ssh-keyscan -H -t rsa localhost,`hostname -i` >> ~/.ssh/known_hosts
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment