ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. TomSnauwaert
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    TomSnauwaert

    @TomSnauwaert

    1
    Reputation
    21
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    TomSnauwaert Unfollow Follow

    Best posts made by TomSnauwaert

    • RE: PowerShell: Running the Get-Command command in a remote session reported the following error

      @scottalanmiller I realise this is an old topic, but I've been fighting something similar all day. As it turns out, the implementation of PTY (and also TTY) has changed in recent versions of OpenSSH for windows. When the SSH session is built from within a script, the new OpenSSH implementation detects that the session is not setup from an interactive terminal, and therefore does not assign a PTY to the session, which results in the unability of the Get-Command command to send its output to STDOUT, hence the access denied error. Solution is (at least in the situation I am in) to use the -t (or even -tt) flag with the ssh command to set up the session

      posted in IT Discussion
      T
      TomSnauwaert

    Latest posts made by TomSnauwaert

    • RE: PowerShell: Running the Get-Command command in a remote session reported the following error

      @scottalanmiller I realise this is an old topic, but I've been fighting something similar all day. As it turns out, the implementation of PTY (and also TTY) has changed in recent versions of OpenSSH for windows. When the SSH session is built from within a script, the new OpenSSH implementation detects that the session is not setup from an interactive terminal, and therefore does not assign a PTY to the session, which results in the unability of the Get-Command command to send its output to STDOUT, hence the access denied error. Solution is (at least in the situation I am in) to use the -t (or even -tt) flag with the ssh command to set up the session

      posted in IT Discussion
      T
      TomSnauwaert