Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to execute adminstrative commands from non-interactive session #2338

Closed
3 tasks done
roalter opened this issue Mar 6, 2025 · 1 comment
Closed
3 tasks done

Comments

@roalter
Copy link

roalter commented Mar 6, 2025

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

I've experiencing problems since later version for OpenSSH for Windows. I'm using the OpenSSH server service to access a large amount of Virtual Windows machines. For easier use cases, the machines are operated via SSH (to have the same procedure on both Windows and Linux).

Since upgrading from 9.5 to 9.8 this is no longer possible.

Traced it down on the machine by only replacing the OpenSSH server on a wokring machine from 9.5 to 9.8, the errors ocurres. Is not related on Windows, Powershell or Pwsh version.

Expected behavior

# ssh adminuser@remotehost -i private.key get-computerinfo

WindowsBuildLabEx                                       : 19041.1.amd64fre.vb_release.191206-1406
WindowsCurrentVersion                                   : 6.3
WindowsEditionId                                        : Enterprise
WindowsInstallationType                                 : Client
WindowsInstallDateFromRegistry                          : 01.11.2024 19:55:51
WindowsSystemRoot                                       : C:\Windows
WindowsVersion                                          : 2009
BiosCharacteristics                                     : {4, 7, 9, 11...}
BiosBIOSVersion                                         : {INTEL  - 6040000, VMware, Inc. - 10000}
....
#

Actual behavior

# ssh adminuser@remotehost -i private.key get-computerinfo

get-computerinfo : Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer.
Contact Microsoft Customer Support Services.
At line:1 char:1
+ get-computerinfo
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (:) [Get-ComputerInfo], HostException
    + FullyQualifiedErrorId : ReadConsoleOutput,Microsoft.PowerShell.Commands.GetComputerInfoCommand

Error details

Environment data

Not possible due to a bash shell. Just executing ssh.

Caller:
# ssh -V
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

Version

OpenSSH 9.5 locally, OpenSSH 9.8 on remote

Visuals

No response

@tgauth
Copy link
Collaborator

tgauth commented Mar 6, 2025

Starting in 9.8, there is an sshd-session.exe in addition to sshd.exe. Did you copy over both sshd.exe and sshd-session.exe as part of the drop-in replacement for 9.5?

Otherwise, this sounds similar to #2296

@StevenBucher98 StevenBucher98 added Waiting on Author Need more information to diagnose Issue-Bug labels Mar 10, 2025
@StevenBucher98 StevenBucher98 added Resolution - Fixed and removed Waiting on Author Need more information to diagnose labels Mar 13, 2025
@tgauth tgauth added this to the V9.8.2.0 milestone Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants