"$tool"/local/apt-get-install openssh-server
"$tool"/local/insserv-remove ssh
-ssh-keygen -F "$vm_fqdn" -f "$tool"/etc/openssh/known_hosts |
+ssh-keygen -F "$local_fqdn" -f "$tool"/etc/openssh/known_hosts |
( while IFS= read -r line
do case $line in (*" RSA") return 0; break;; esac
done; return 1 ) ||
/etc/ssh/ssh_host_ecdsa_key.pub
# NOTE: clefs générées par Debian
m4 \
- --define=VM_IPV4=$vm_ipv4 \
+ --define=LOCAL_IPV4=$local_ipv4 \
<"$tool"/etc/ssh/sshd_config.m4 |
sudo install -m 640 -o root -g root /dev/stdin \
/etc/ssh/sshd_config