From 2617d956d8ae122128a1ba2cc74983cbd683b042 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 6 Dec 2019 13:21:11 +0100 Subject: machine: ssh: Deprecate missing 'host-key' field. * gnu/machine/ssh.scm (machine-ssh-session): Warn about missing host key. --- gnu/machine/ssh.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gnu/machine') diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm index 23ae917b79..1b88fb44cc 100644 --- a/gnu/machine/ssh.scm +++ b/gnu/machine/ssh.scm @@ -103,6 +103,9 @@ one from the configuration's parameters if one was not provided." (port (machine-ssh-configuration-port config)) (identity (machine-ssh-configuration-identity config)) (host-key (machine-ssh-configuration-host-key config))) + (unless host-key + (warning (G_ " without a 'host-key' \ +is deprecated~%"))) (open-ssh-session host-name #:user user #:port port -- cgit v1.2.3