Class SshTask

    • Field Detail

      • keepAliveInterval

        @Nullable
        protected @Nullable java.time.Duration keepAliveInterval
    • Constructor Detail

      • SshTask

        public SshTask()
    • Method Detail

      • command

        public SshTask command​(@NotNull
                               @NotNull java.lang.String command)
        Shell command to execute on the remote host.
      • command

        public SshTask command​(@NotNull
                               @NotNull java.nio.file.Path path)
      • keepAliveInterval

        public SshTask keepAliveInterval​(java.time.Duration keepAliveInterval)
        Sets the SSH keep alive interval.
      • keepAliveIntervalInSeconds

        public SshTask keepAliveIntervalInSeconds​(int keepAliveIntervalSeconds)
        Sets the SSH keep alive interval in seconds.