Skip to content

Connection to remote target with -UseSSL (HTTPS) option doesn't complete #20

Open

Description

@rbganesh

I am trying to use the lib to make connection to the target using the command below command from the library and it just hangs and never returns the output.

$session = New-PSSession -Name myhttpsSession -Credential $Cred -ComputerName 10.10.10.10 -UseSSL -SessionOption $pso

However, executing the same command directly from the powershell returns the session object.

Activity

  1. Tuupertunut commented on Oct 21, 2025

    @Tuupertunut
    Owner

    I don't know what could be the difference between running directly in powershell and using this library. This library is very simple, it just starts a powershell process and enters the command in its stdin. You could copy the code to your software and modify it to see what works for you. It is unlikely this library will ever be updated.

  2. rbganesh commented on Oct 23, 2025

    @rbganesh
    Author

    Thank you for your response. I noticed an issue from my code that has caused the HTTPS not working. I fixed it and works fine now.

    I understand you are not planning on maintaining the lib. I Just have one question about the SSH based remoting. When I use the SSH option -Hostname, I am seeing a new shell being created and the i/o from that new shell is not wired to the outputRecorder. This results in the new-ps-session command getting into a hung state for SSH. Is there a way to handle this interactive session?

  3. Tuupertunut commented on Oct 23, 2025

    @Tuupertunut
    Owner

    I don't know. I don't remember testing this with SSH or anything that creates a new shell.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions