mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
16 lines
224 B
Bash
Executable File
16 lines
224 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# reset root password
|
|
|
|
if [[ -z "${SSH_PASS}" ]]; then
|
|
export SSH_PASS=password
|
|
fi
|
|
|
|
echo -e "${SSH_PASS}\n${SSH_PASS}" | passwd
|
|
|
|
# start sshd service
|
|
/etc/init.d/ssh start
|
|
|
|
# do nothing but wait
|
|
sleep infinity
|