Skip to content

Commit 604c96e

Browse files
committed
Fix ssh login bug
1 parent dbd94c5 commit 604c96e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ apt-get update
1010
apt-get install -y openssh-server &&
1111
mkdir /var/run/sshd &&
1212
echo 'root:admin' | chpasswd &&
13-
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config &&
14-
sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd &&
15-
echo "export VISIBLE=now" >> /etc/profile &&
13+
sed -i 's/^PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config &&
14+
sed -i 's/session\s*required\s*pam_loginuid.so/session optional pam_loginuid.so/g' /etc/pam.d/sshd &&
15+
echo 'export VISIBLE=now' >> /etc/profile &&
1616

1717
# Prepare to install Oracle
1818
apt-get install -y libaio1 net-tools bc &&

0 commit comments

Comments
 (0)