Skip to content

Trying to SSH to a Windows Machine #77

Description

@ebulku

I know it is not common to SSH to another Windows Machine, but it is not working.
I have tracked it and the reason is the part of hardcoding 'bash -se' in the command, and it is not recognized by Windows.
To fix it just remove 'bash -se' from getExecuteCommand() function:

from:

return "ssh {$extraOptions} {$target} 'bash -se' << \\$delimiter".PHP_EOL
                    .$commandString.PHP_EOL
                    .$delimiter;

to:

return "ssh {$extraOptions} {$target} << \\$delimiter".PHP_EOL
                    .$commandString.PHP_EOL
                    .$delimiter;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions