PowerShell / PowerShell/Win32-OpenSSH

native method [OpenFileMapping] returned null.

Open
#1,406 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Discussion-Deprecated/use GitHub discussions
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps

Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH
"OpenSSH for Windows" version
7.6.0.1
Server OperatingSystem
Windows 10 Enterprise
Client OperatingSystem
Windows 10 Enterprise
What is failing
I want to remotely execute a batch script via openssh to start a java process, for example:
cmd /c D:\batch\start.bat
It is successful.
but when i execution jps command It prompts :"-- process information unavailable"
When I traced the hotspot source code, I found out that the native method [OpenFileMapping] returned null.
why? Is it because there is no permission?
but i‘m using the same account.
so who can help me?????

Expected output

Actual output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Troubleshooting Steps and TTY/PTY support wiki pages, then reproduce the batch-script and jps commands on the stated Windows 10 and OpenSSH 7.6.0.1 setup. Trace the OpenFileMapping failure in the Java process context and establish whether permissions or session handling cause the null result; done means a confirmed cause and documented resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, java
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.