diff --git a/build/start_ssh_server.sh b/build/start_ssh_server.sh index cdfa448e..0be1a9fb 100644 --- a/build/start_ssh_server.sh +++ b/build/start_ssh_server.sh @@ -8,6 +8,8 @@ echo test:test | chpasswd sudo cp /etc/ssh/sshd_config /root/sshd_config sudo bash -c "echo '' >> /root/sshd_config" +sudo bash -c "echo 'PasswordAuthentication yes' >> /root/sshd_config" +sudo bash -c "echo '' >> /root/sshd_config" sudo bash -c "echo 'AllowUsers test' >> /root/sshd_config" sudo sed -i "s/Port 22/Port 2222/g" /root/sshd_config sudo sed -i "s/\/etc\/ssh\//~\//g" /root/sshd_config