Slide 21
Slide 21 text
TTIEΛΠϯετʔϧͯ͠ةݥͳઃఆΛ͠·͢
Haconiwa.define do |config|
#...
config.provision do |p|
p.run_shell <<-SHELL
apk add --update openssh
sed -i 's/#Port.*/Port 2222/' /etc/ssh/sshd_config
# NOTE: αϯϓϧ͔ͩΒͶʂ
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
echo root:r00t | chpasswd
ssh-keygen -t rsa -P "" -f /etc/ssh/ssh_host_rsa_key
SHELL
end
#...
end