Class SshScriptingServiceImpl

    • Constructor Detail

      • SshScriptingServiceImpl

        public SshScriptingServiceImpl()
    • Method Detail

      • execute

        public SshScriptingService.Result execute​(String script,
                                                  String user,
                                                  String password,
                                                  SocketAddress target,
                                                  String hostKeyFingerprint,
                                                  Map<String,​String> vars,
                                                  java.time.Duration timeout)
        Description copied from interface: SshScriptingService
        Executes the given script and optionally returns a failure.

        Specified by:
        execute in interface SshScriptingService
        Parameters:
        script - contains statements separated by new lines
        user - the ssh user
        password - the ssh user's password
        target - the ssh target to connect to
        hostKeyFingerprint - host key fingerprint to accept from the target system
        vars - variables that can be referenced in the script; variables are referenced by "${varname}" expressions
        timeout - used when establishing the ssh interaction and for await statements
        Returns: