Skip to content

Is there a way to disconnect manually  #72

Description

@schrink

I have a long running process and SSH should be disconnected once I get certain sting in the output. Right now I wait for process to timeout, but this is not a good solution. It there a way to close the connection manually?

\SSH::run([$command], function($line){
            if(strpos($line.PHP_EOL, 'Finished)) {
                Log::info("Process finished");
               \\ something like SSH::close();
            }
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions