Class ScpCommandMain


public class ScpCommandMain extends SshClientCliSupport
See Also:
  • Field Details

    • SCP_PORT_OPTION

      public static final String SCP_PORT_OPTION
      Command line option used to indicate a non-default port
      See Also:
    • SCP_REMOTE_TO_REMOTE_OPTION

      public static final String SCP_REMOTE_TO_REMOTE_OPTION
      Copies between two remote hosts are transferred through the local host
      See Also:
  • Constructor Details

    • ScpCommandMain

      public ScpCommandMain()
  • Method Details

    • normalizeCommandArguments

      public static String[] normalizeCommandArguments(PrintStream stdout, PrintStream stderr, String... args)
    • adjustRemoteTargetArguments

      private static void adjustRemoteTargetArguments(org.apache.sshd.scp.common.ScpLocation remote, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<String> effective)
    • resolveScpClientCreator

      public static org.apache.sshd.scp.client.ScpClientCreator resolveScpClientCreator(PrintStream stderr, String... args)
    • parseCopyOptions

      public static Set<org.apache.sshd.scp.client.ScpClient.Option> parseCopyOptions(String[] args)
    • showUsageMessage

      public static void showUsageMessage(PrintStream stderr)
    • xferLocalToRemote

      public static void xferLocalToRemote(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) throws Exception
      Throws:
      Exception
    • xferRemoteToRemote

      public static void xferRemoteToRemote(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception