Skip to content

Commit

Permalink
Merge pull request EleutherAI#936 from EleutherAI/remove-default-pass…
Browse files Browse the repository at this point in the history
…word

remove password based login for root
  • Loading branch information
ShivanshuPurohit committed May 14, 2023
2 parents a683a88 + 5c4b51b commit 9a18727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ RUN apt-get update -y && \
pip install gpustat

### SSH
# Set password
ENV PASSWORD=password
RUN mkdir /var/run/sshd && \
echo "root:${PASSWORD}" | chpasswd && \
# Allow root login with password
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
# Prevent user being kicked off after login
sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd && \
echo 'AuthorizedKeysFile .ssh/authorized_keys' >> /etc/ssh/sshd_config && \
Expand Down
2 changes: 1 addition & 1 deletion configs/neox_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Logging Arguments

- **git_hash**: str

Default = 9a8b2e5
Default = b192e18

current git hash of repository

Expand Down

0 comments on commit 9a18727

Please sign in to comment.