From 95539ba0ebe0f71f77c621befb26dd836f0ffd0c Mon Sep 17 00:00:00 2001 From: Sahana Prasad Date: Mon, 11 Oct 2021 12:36:57 +0200 Subject: [PATCH] Adds documentation about the order of processing the IdentityFiles specified in ~/.ssh/config. Signed-off-by: Sahana Prasad Reviewed-by: Jakub Jelen --- doc/authentication.dox | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/authentication.dox b/doc/authentication.dox index 3196f645..7d0ab81d 100644 --- a/doc/authentication.dox +++ b/doc/authentication.dox @@ -33,6 +33,9 @@ The process of authenticating by public key to a server is the following: used to authenticate the user). - then, you retrieve the private key for this key and send a message proving that you know that private key. + - when several identity files are specified, then the order of processing of + these files is from the last-mentioned to the first one + (if specified in the ~/.ssh/config, then starting from the bottom to the top). The function ssh_userauth_autopubkey() does this using the available keys in "~/.ssh/". The return values are the following: