1 "$tool"/local
/apt-get-install openssh-server
2 "$tool"/local
/insserv-remove
ssh
3 ssh-keygen
-F "$vm_fqdn" -f "$tool"/etc
/openssh
/known_hosts |
4 ( while IFS
= read -r line
5 do case $line in (*" RSA") return 0; break;; esac
7 sudo ssh-keygen
-t rsa
-b 4096 -N '' -f /etc
/ssh
/ssh_host_rsa_key
9 /etc
/ssh
/ssh_host_dsa_key \
10 /etc
/ssh
/ssh_host_dsa_key.pub \
11 /etc
/ssh
/ssh_host_ecdsa_key \
12 /etc
/ssh
/ssh_host_ecdsa_key.pub
13 # NOTE: clefs générées par Debian
15 --define=VM_IPV4
=$vm_ipv4 \
16 <"$tool"/etc
/ssh
/sshd_config.
m4 |
17 sudo
install -m 640 -o root
-g root
/dev
/stdin \
19 sudo
install -m 644 -o root
-g root \
20 "$tool"/etc
/ssh
/ssh_config \