Wagon SSH provider

This project is an implementation of Wagon provider for scp and sftp protocols using JSCH library

Features

  • SCP and SFTP protocols are supported.
  • PUT and GET requests are are supported for both protocols.
  • SCH Wagon is able to set remote UNIX group for deployed resource (see: xxx ), but for SFTP protocol group id should be a positive integer.

Configuration

This wagon can be configured in some ways:

What? / InterfaceDefault ValueWhy?
Known Hosts Provider FileKnownHostsProvider with fallback to NullKnownHostProvider provides known hosts keys, needed to check the hosts identity. This is an important thing!

Some implementations:

Host Checking Ask (type safe enum)The policy with the hosts keys:
  • Yes: Check host keys. If the incoming key is not available in the Known Hosts Provider fails
  • Ask: If the incoming key is not available in the Known Hosts Provider it ask the user if the fingerprint is trusted
  • No: don't check host keys at all. pretty unsafe!!
Interactive User Info ConsoleInteractiveUserInfo If the user choose Ask as Host Checking , this bean is used to interact with the user

Some implementations:

Configuration

This wagon can be configured in some ways:

What? / InterfaceDefault ValueWhy?
Known Hosts Provider FileKnownHostsProvider with fallback to NullKnownHostProviderprovides known hosts keys, needed to check the hosts identity. This is an important thing!

Some implementations:

Host CheckingAsk (type safe enum)The policy with the hosts keys:
  • Yes: Check host keys. If the incoming key is not available in the Known Hosts Provider fails
  • Ask: If the incoming key is not available in the Known Hosts Provider it ask the user if the fingerprint is trusted
  • No: don't check host keys at all. pretty unsafe!!
Interactive User InfoConsoleInteractiveUserInfoIf the user choose Ask as Host Checking, this bean is used to interact with the user

Some implementations:

TODO Autogenerate some of this information with a xdoclet2 plugin?