From 15a35dac77f227e0af5626ec5b8c94c074b2b59e Mon Sep 17 00:00:00 2001 From: Jakub Witczak Date: Fri, 5 Sep 2025 14:54:47 +0200 Subject: [PATCH 1/2] ssh: doc typo fix --- lib/ssh/src/ssh_file.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssh/src/ssh_file.erl b/lib/ssh/src/ssh_file.erl index 1cddcaf7dbb5..a9f0d65577f5 100644 --- a/lib/ssh/src/ssh_file.erl +++ b/lib/ssh/src/ssh_file.erl @@ -45,7 +45,7 @@ handler. Such another callback module could be used by setting the option [`key_cb`](`t:ssh:key_cb_common_option/0`) when starting a client or a server (with for example [ssh:connect](`ssh:connect/3`), [ssh:daemon](`ssh:daemon/2`) -of [ssh:shell](`ssh:shell/1`) ). +or [ssh:shell](`ssh:shell/1`) ). > #### Note {: .info } > From 1eba2fc709c0ed0a3367478fa8856d82e5b2e6da Mon Sep 17 00:00:00 2001 From: Jakub Witczak Date: Fri, 5 Sep 2025 17:40:41 +0200 Subject: [PATCH 2/2] ssh: (doc) add missing function headlines in ssh_file --- lib/ssh/src/ssh_file.erl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ssh/src/ssh_file.erl b/lib/ssh/src/ssh_file.erl index a9f0d65577f5..8f7ff50446f4 100644 --- a/lib/ssh/src/ssh_file.erl +++ b/lib/ssh/src/ssh_file.erl @@ -257,6 +257,8 @@ call that initiates an ssh connection. %%%---------------- SERVER API ------------------------------------ -doc """ +Fetches the private key of the host. + **Types and description** See the api description in @@ -285,6 +287,8 @@ host_key(Algorithm, Opts) -> %%%................................................................ -doc """ +Checks if the user key is authorized. + **Types and description** See the api description in @@ -321,6 +325,8 @@ is_auth_key(Key0, User, Opts) -> %%%---------------- CLIENT API ------------------------------------ -doc """ +Fetches the users public key matching the Algorithm. + **Types and description** See the api description in @@ -356,6 +362,8 @@ user_key(Algorithm, Opts) -> %%%................................................................ %%% New style (with port number) -doc """ +Checks if a host key is trusted. + **Types and description** See the api description in @@ -395,6 +403,8 @@ is_host_key(Key0, Hosts0, Port, Algorithm, Opts) -> %%%---------------------------------------------------------------- -doc """ +Adds a host key to the set of trusted host keys. + **Types and description** See the api description in