-
-
Notifications
You must be signed in to change notification settings - Fork 313
remote ssh on windows server can't execute python #946
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
Comments
P.S.: with Linux server opening the SSH for debugging works, but not with Windows server OpenSSH installed. |
I figured out what the issue is: in cPySSHDebugger.pas line 114 you use this
However, it should this I guess:
It has " (one double mark) instead of '' (double single marks). Because then I did run: I got this back:
See, the same error ! But when I did run this way:
It all worked as expected. |
Finally, I did compile it and found a temporary solution (run a remote init.py file instead of using "python -c"). But that is only a temporary solution. (FYI, I didn't worked in Delphi for almost 25 years.) |
Thanks for the bug report. I will have a closer look. But SSHing to Windows machine did work here. Are you using a recent version of OpenSSH from https://github.com/PowerShell/Win32-OpenSSH/releases on both sides? You may also try putty (see https://pyscripter.blogspot.com/2019/01/ssh-engines-using-putty.html). I know it is being used a lot with success. |
I use Win64 version OpenSSH on Win server side and I have Putty on my notebook. If you want it, I can grant you temporary access to my VPS. So, you can take a closer look. |
But which version of ssh? e.g.
|
when I configured my remote connection to Win2016 server and trying to activate it this message comes up:
Failed to execute Python (“C:\Python2\python.exe) on the SSH server
ReturnCode: 1
Output:
ErrorOutput: File ’, line 1
import
SyntaxError EOL while scanning string literal
The text was updated successfully, but these errors were encountered: