X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fsshd%2Flocal.sh;h=2abe7d1e82b77edfba44552ea1bb1cfd6d928f02;hp=d3d6933959c2c2aefa3115c2f9e6597bd65810d9;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/sv/sshd/local.sh b/etc/sv/sshd/local.sh index d3d6933..2abe7d1 100644 --- a/etc/sv/sshd/local.sh +++ b/etc/sv/sshd/local.sh @@ -1,6 +1,6 @@ "$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 ) || @@ -12,7 +12,7 @@ sudo rm -f \ /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