]> source.dussan.org Git - jgit.git/commit
Apache MINA sshd client: respect NumberOfPasswordPrompts 88/131888/9
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 3 Oct 2018 06:27:40 +0000 (08:27 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Nov 2018 18:49:26 +0000 (10:49 -0800)
commit63a87b398ff67584069ab8cf6a17824f009a7102
tree506c959ef56fde40ebe2c8e10d79e05a0a9eb0eb
parent8001f4c1fe441ec2eb7416851e933e9dc347abd7
Apache MINA sshd client: respect NumberOfPasswordPrompts

Set the internal property on the session as defined in the ssh config.

Note that NumberOfPasswordPrompts in openssh applies independently to
both user logins in keyboard-interactive authentication _and_ to
passphrases for identity files (encrypted keys). Apache MINA sshd uses
the setting only for keyboard-interactive authentication, but not for
identity file passphrase prompts. For identity files, it asks exactly
once. This has been reported as issue SSHD-850 upstream.[1]

[1] https://issues.apache.org/jira/browse/SSHD-850

Bug: 520927
Change-Id: I390ffe9e1c52b96d3e8e28fd8edbdc73dde9edb4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.apache/resources/org/eclipse/jgit/internal/transport/sshd/SshdText.properties
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/SshdText.java