1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 23:48:09 +00:00

Merge pull request #347 from imikushin/sshd-client-alive

add ClientAliveInterval 180 to sshd_config
This commit is contained in:
Darren Shepherd
2015-06-26 09:39:57 -07:00
3 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ RUN addgroup --gid 1100 rancher && \
addgroup --gid 1101 docker && \
useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \
useradd -u 1101 -g docker -G docker,sudo -m -s /bin/bash docker && \
echo ClientAliveInterval 180 >> /etc/ssh/sshd_config && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers