PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.44k stars 762 forks source link

native method [OpenFileMapping] returned null. #1406

Open snoopylovefiona opened 5 years ago

snoopylovefiona commented 5 years ago

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

NoMoreFood commented 5 years ago

@snoopylovefiona No solution as of yet, but I suspect this is the same problem noted in https://github.com/PowerShell/Win32-OpenSSH/issues/1349

manojampalam commented 5 years ago

Most likely. Check access permissions on your resource- I'm guessing it has a DENY on "Network"