[esb-issues] [JBoss JIRA] Closed: (JBESB-2875) Support sftp (ssh) keyboard-interactive auth
Kevin Conner (JIRA)
jira-events at lists.jboss.org
Mon Oct 19 10:51:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBESB-2875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Conner closed JBESB-2875.
-------------------------------
Resolution: Done
Added UserInfo in revisions 29657 and 29670.
Tested locally with OpenSSH, configured to enable ChallengeResponseAuthentication and disable #PasswordAuthentication.
> Support sftp (ssh) keyboard-interactive auth
> --------------------------------------------
>
> Key: JBESB-2875
> URL: https://jira.jboss.org/jira/browse/JBESB-2875
> Project: JBoss ESB
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Adapters
> Affects Versions: 4.6
> Reporter: Tom Eicher
> Assignee: Kevin Conner
> Priority: Minor
> Fix For: 4.7
>
>
> JSch, as it is currently used in SecureFtpOverSSH, does only allow "password" authentication.
> However, this requires that the target system has ssh configured for "PasswordAuthentication yes" in sshd_conf, which is by default "no" nowadays...
> Connections will fail with
> org.jboss.soa.esb.util.RemoteFileSystemException: com.jcraft.jsch.JSchException: Auth fail
> To allow connections to servers configured like this, we need to support "keyboard-interactive" additionally:
> 1. SecureFtpImpl:
> change session.setConfig("PreferredAuthentications", "password");
> to session.setConfig("PreferredAuthentications", "password,keyboard-interactive");
> 2. SecureFtpUserInfo:
> additionally implement JSch interface UIKeyboardInteractive:
> public String[] promptKeyboardInteractive(
> String destination,
> String name,
> String instruction,
> String[] prompt,
> boolean[] echo){
> if(prompt.length!=1 || echo[0]!=false || this.password==null){
> return null;
> }
> String[] response=new String[1];
> response[0]=this.password;
> return response;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the esb-issues
mailing list