Skip to content
Discussion options

You must be logged in to vote

We try to imitate the behaviour of the ssh client which also tries any keys available through the ssh-agent before an explicitly specified key (-i option) is tried - unless your ~/.ssh/config contains a IdentitiesOnly yes entry. You can verify this behaviour by adding -v to your ssh command. Also refer to man ssh_config regarding the IdentitiesOnly setting.
In your log file I can see that your ssh-agent has 4 identities configured which are tried before the explicit key.

Replies: 8 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@merkste
Comment options

@merkste
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by merkste
Comment options

You must be logged in to vote
2 replies
@merkste
Comment options

@WhatImListnTo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sftp SFTP Protocol Implementation
4 participants
Converted from issue

This discussion was converted from issue #14361 on March 16, 2023 08:16.