Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-273

SSH Resolver added and aligned with SFTP resolver



    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4-RC1
    • 1.4-RC1
    • Core
    • None


      Here are my changes to the existing code to add SSH support and align with the existing SFTP support. The files are based on svn revision 463.

      I've added several abstract base classes for ssh connection handling. I added SshCache support for SFTP and added support for handling URLs inside the patterns (as addition to normal paths).

      Oh yeah, and I've also made a small fix in the SFTP repository to honor the overwrite flag (which was totally ignored before). Hope that was ok.

      I've also added support for public key files. They can only be set via attributes and not via url, but that should be ok, because the keyfiles are not host specific and the same key can be used on several hosts. I've also included your prompting mechanism, so also normal passwords can be used pretty conveniently (very nice work btw.). Passwords of key files will be prompted, too, btw.

      I've only included javadoc (especially in the resolvers) for documentation, hope this is enough. I would tell the user to choose sftp over ssh, because as a connection oriented protocol it is faster. If sftp is not available or does not work, the fallback should be ssh (which is based on using scp btw.).

      Ok, looking forward for the next version so I can use it.

      And thanks for Ivy in general! Great work!


        1. ASF.LICENSE.NOT.GRANTED--ivyssh.jar
          19 kB
          Andreas Sahlbach



            xavier Xavier Hanin
            ace Andreas Sahlbach
            0 Vote for this issue
            0 Start watching this issue