machine: ssh: Deprecate missing 'host-key' field.
* gnu/machine/ssh.scm (machine-ssh-session): Warn about missing host key.master
parent
1b3fa123ea
commit
2617d956d8
|
@ -103,6 +103,9 @@ one from the configuration's parameters if one was not provided."
|
||||||
(port (machine-ssh-configuration-port config))
|
(port (machine-ssh-configuration-port config))
|
||||||
(identity (machine-ssh-configuration-identity config))
|
(identity (machine-ssh-configuration-identity config))
|
||||||
(host-key (machine-ssh-configuration-host-key config)))
|
(host-key (machine-ssh-configuration-host-key config)))
|
||||||
|
(unless host-key
|
||||||
|
(warning (G_ "<machine-ssh-configuration> without a 'host-key' \
|
||||||
|
is deprecated~%")))
|
||||||
(open-ssh-session host-name
|
(open-ssh-session host-name
|
||||||
#:user user
|
#:user user
|
||||||
#:port port
|
#:port port
|
||||||
|
|
Reference in New Issue