<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:annotate="http://purl.org/rss/1.0/modules/annotate/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!--
	This feed generated for Anonymous-->
<channel>
<title>NuSphere Forums</title>
<link>http://forum.nusphere.com/</link>
<description></description>
<managingEditor>web-forums@nusphere.com</managingEditor>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>RSS Feed 2.2.3</generator>
<language>en</language><lastBuildDate>Sun, 05 Apr 2026 23:57:00 GMT</lastBuildDate>
<image>
	<url>http://forum.nusphere.com//nu16x16.gif</url>
	<title>NuSphere Forums</title>
	<link>http://forum.nusphere.com/</link>
	<width>16</width>
	<height>16</height>
</image>
<item>
<title>PhpED PHP IDE :: RE: Remote CLI SSH debug on Windows server does not from the IDE</title>
<link>http://forum.nusphere.com/viewtopic.php?p=37543#37543</link>
<pubDate>Fri, 03 Apr 2026 04:03:38 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37543#37543</guid>
<description>Author: &lt;a href=&quot;member2.html&quot; target=&quot;_blank&quot;&gt;dmitri&lt;/a&gt;&lt;br /&gt;
Posted: Thu Apr 02, 2026 11:03 pm (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
If I read this right, you don&#039;t want to use cygwin&#039;s sshd (openssh) but windows sshd (openssh) because it&#039;s your prod and I guess you have some other integrations that relies on cmd.
&lt;br /&gt;
May be you can setup a different User account for debugger and configure windows sshd to lauch cygwin bash automatically?
&lt;br /&gt;
there is %programdata%sshsshd_config, where you can set 
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table width=&quot;90%&quot; align=&quot;center&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; class=&quot;code&quot;&gt;&lt;tr&gt; 	&lt;td class=&quot;code_header&quot; align=&quot;left&quot;&gt;Code:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;	&lt;td class=&quot;code&quot; align=&quot;left&quot;&gt;
&lt;br /&gt;
Match User username
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ForceCommand C&amp;#58;\Path\To\Cygwin\bash.exe --login
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;
Does this solve the problem?&lt;br /&gt;_________________&lt;br /&gt;&lt;a href=&quot;http://www.nusphere.com/products/phped.htm&quot; target=&quot;_blank&quot;&gt;The PHP IDE team&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
</description>
<dc:creator>dmitri</dc:creator>
<dc:subject>PhpED PHP IDE</dc:subject>
<annotate:reference rdf:resource="http://forum.nusphere.com/viewtopic.php?p=37525#37525" />
<comments>http://forum.nusphere.com/posting.php?mode=quote&amp;p=37543</comments>
</item>
<item>
<title>PhpED PHP IDE :: RE: Remote CLI SSH debug on Windows server does not from the IDE</title>
<link>http://forum.nusphere.com/viewtopic.php?p=37542#37542</link>
<pubDate>Thu, 02 Apr 2026 22:23:45 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37542#37542</guid>
<description>Author: &lt;a href=&quot;member9804.html&quot; target=&quot;_blank&quot;&gt;carlosh&lt;/a&gt;&lt;br /&gt;
Posted: Thu Apr 02, 2026 5:23 pm (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I found another possible workaround; I am leaving the default shell to `cmd.exe`. But if I execute this command on the client:
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table width=&quot;90%&quot; align=&quot;center&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; class=&quot;code&quot;&gt;&lt;tr&gt; 	&lt;td class=&quot;code_header&quot; align=&quot;left&quot;&gt;Code:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;	&lt;td class=&quot;code&quot; align=&quot;left&quot;&gt;
&lt;br /&gt;
ssh -p 22 -t &lt;a href=&quot;mailto:user@host.domain.com&quot;&gt;user@host.domain.com&lt;/a&gt; &amp;quot;C&amp;#58;\cygwin64\bin\bash.exe -il&amp;quot;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
I am landing on the bash shell. However, this cannot be use PHPEd because the Account UI for SSH Terminal Accounts, there is no option to add SSH &amp;quot;commands&amp;quot;. If there were a choice, possible this could be a possibility.&lt;/span&gt;&lt;br /&gt;
</description>
<dc:creator>carlosh</dc:creator>
<dc:subject>PhpED PHP IDE</dc:subject>
<annotate:reference rdf:resource="http://forum.nusphere.com/viewtopic.php?p=37525#37525" />
<comments>http://forum.nusphere.com/posting.php?mode=quote&amp;p=37542</comments>
</item>
<item>
<title>PhpED PHP IDE :: RE: Remote CLI SSH debug on Windows server does not from the IDE</title>
<link>http://forum.nusphere.com/viewtopic.php?p=37541#37541</link>
<pubDate>Thu, 02 Apr 2026 18:59:28 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37541#37541</guid>
<description>Author: &lt;a href=&quot;member9804.html&quot; target=&quot;_blank&quot;&gt;carlosh&lt;/a&gt;&lt;br /&gt;
Posted: Thu Apr 02, 2026 1:59 pm (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Yes, after my last reply, I noticed that you mentioned about open the Firewall port for the OpenSSHd from Cygwin, so I realized that you referred to run the whole SSH server and shell using Cygwin.
&lt;br /&gt;

&lt;br /&gt;
As I proved before, by executing the commands manually, it&#039;s possible to run the CLI debugger using the CMD, but needs that PhpEd, knows that is not a bash shell and send the correct sequence of command. I said this should be considered as Window Server 2019 and 2025, the SSH server is built-in and deployed on production servers, especially for Core deployments.
&lt;br /&gt;

&lt;br /&gt;
I know that you mention that PhpEd and these features are mean for developing. However, when something goes wrong on production, the debugger is an amazing tool to diagnostic and figure out an already deployed application without the need to download the whole application (code, database, data files) locally and redeploy on a stagging server. An even, the worst-case scenario, sometimes the misbehavior is not reproducible on staging servers, only on production.&lt;/span&gt;&lt;br /&gt;
</description>
<dc:creator>carlosh</dc:creator>
<dc:subject>PhpED PHP IDE</dc:subject>
<annotate:reference rdf:resource="http://forum.nusphere.com/viewtopic.php?p=37525#37525" />
<comments>http://forum.nusphere.com/posting.php?mode=quote&amp;p=37541</comments>
</item>
<item>
<title>PhpED PHP IDE :: RE: Remote CLI SSH debug on Windows server does not from the IDE</title>
<link>http://forum.nusphere.com/viewtopic.php?p=37540#37540</link>
<pubDate>Thu, 02 Apr 2026 11:54:21 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37540#37540</guid>
<description>Author: &lt;a href=&quot;member2.html&quot; target=&quot;_blank&quot;&gt;dmitri&lt;/a&gt;&lt;br /&gt;
Posted: Thu Apr 02, 2026 6:54 am (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I think you&#039;d run sshd from cygwin if you&#039;re using cygwin. It runs cygwin&#039;s bash (or zsh if you will) without any problems or quirks and therefore wouldn&#039;t require to run twice and sftp would work too.
&lt;br /&gt;
You also will find out that public keys for regular (non-Administrator) user authentication are working out of the cygwin box too. I couldn&#039;t find a way to set that with Win10&#039;s openssh component.
&lt;br /&gt;

&lt;br /&gt;
I agree that cmd and openssh components on Win10+ should be preferred in your case. They were not available at the time when the feature was designed and developed, but telnet was.
&lt;br /&gt;
Now telnet is not available and we need to implement cmd based connector for windows.&lt;br /&gt;_________________&lt;br /&gt;&lt;a href=&quot;http://www.nusphere.com/products/phped.htm&quot; target=&quot;_blank&quot;&gt;The PHP IDE team&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
</description>
<dc:creator>dmitri</dc:creator>
<dc:subject>PhpED PHP IDE</dc:subject>
<annotate:reference rdf:resource="http://forum.nusphere.com/viewtopic.php?p=37525#37525" />
<comments>http://forum.nusphere.com/posting.php?mode=quote&amp;p=37540</comments>
</item>
<item>
<title>PhpED PHP IDE :: RE: Remote CLI SSH debug on Windows server does not from the IDE</title>
<link>http://forum.nusphere.com/viewtopic.php?p=37539#37539</link>
<pubDate>Thu, 02 Apr 2026 05:51:06 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37539#37539</guid>
<description>Author: &lt;a href=&quot;member9804.html&quot; target=&quot;_blank&quot;&gt;carlosh&lt;/a&gt;&lt;br /&gt;
Posted: Thu Apr 02, 2026 12:51 am (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Sorry the delay, I was pulled on other projects. 
&lt;br /&gt;

&lt;br /&gt;
Finaly, I have been able to dedicate time to test on Cygwin. I can say it works but it&#039;s somehow a convoluted procedure and still I have to debug the script twice to make it work. These are the steps.
&lt;br /&gt;

&lt;br /&gt;
1. Download and install the basic Cygwin
&lt;br /&gt;
2. Edit the Registry add these String keys:
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table width=&quot;90%&quot; align=&quot;center&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; class=&quot;code&quot;&gt;&lt;tr&gt; 	&lt;td class=&quot;code_header&quot; align=&quot;left&quot;&gt;Code:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;	&lt;td class=&quot;code&quot; align=&quot;left&quot;&gt;
&lt;br /&gt;
HKLM&amp;#58;SOFTWARE\OpenSSH\DefaultShell = C&amp;#58;\cygwin64\cygwin.bat
&lt;br /&gt;
HKLM&amp;#58;SOFTWARE\OpenSSH\DefaultShellCommandOption = /c
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;
3. Test that I can remote SSH and get a bash shell
&lt;br /&gt;
4. Test if can run &amp;quot;ls&amp;quot; command. If not, something is wrong loading the default profile (This was my first mistake by trying to load bash directly from &amp;quot;C:\\cygwin64\\bin\\bash.exe&amp;quot; and parameters &amp;quot;-i --login&amp;quot;)
&lt;br /&gt;
5. On PHPEd open the project that is remote. The tunnel should open without problem.
&lt;br /&gt;
6. Change on &amp;quot;Run target&amp;quot; the &amp;quot;Php executable&amp;quot; to the cygwin format. In my case it is on the PATH so it should a simple &amp;quot;php&amp;quot;, but I pointed it to the PHP that I have installed at &amp;quot;/cygdrive/C/4safecom/php/php&amp;quot;
&lt;br /&gt;
7. The &amp;quot;Remote root directory&amp;quot; I have to leave it on Windows format, do not put it on Cygwin format. Because the PHP binary still is a windows version.
&lt;br /&gt;
8. Open a CLI script and set a breakpoint.
&lt;br /&gt;
9. Change Run mode to CLI and run on Debug mode. It will open a SSH tab, the first time it will show a lot of stuff of the ENV variable, 
&lt;br /&gt;
10. If it doesn&#039;t start debugging right away, press Cancel, do not close the SSH tab, run the debugger again.
&lt;br /&gt;
11. Most of the times the second time start debugging right away. 
&lt;br /&gt;

&lt;br /&gt;
I think the problem that needs to run twice is due that cygwin needs to run the batch file instead of running the bash on SSH. So, it has to run CMD and then it switches to bash. As a sample, this is the output I get on the SSH window:
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table width=&quot;90%&quot; align=&quot;center&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; class=&quot;code&quot;&gt;&lt;tr&gt; 	&lt;td class=&quot;code_header&quot; align=&quot;left&quot;&gt;Code:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;	&lt;td class=&quot;code&quot; align=&quot;left&quot;&gt;
&lt;br /&gt;
$ cmd /c cd; echo &amp;quot;PHPED_CLI_EXEC_RESULT=$?&amp;quot;
&lt;br /&gt;
C&amp;#58;\Users\dev_sup
&lt;br /&gt;
PHPED_CLI_EXEC_RESULT=0
&lt;br /&gt;

&lt;br /&gt;
$ export DBGSESSID=4614329655400008@localhost&amp;#58;7870\;d=1,p=0c=1
&lt;br /&gt;

&lt;br /&gt;
$ /cygdrive/C/4safecom/php/php C&amp;#58;\\4safecom\\www\\training\\admin\\cron.php
&lt;br /&gt;

&lt;br /&gt;
$ echo &amp;quot;PHPED_CLI_EXEC_RESULT=$?&amp;quot;
&lt;br /&gt;
PHPED_CLI_EXEC_RESULT=0
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
However, after doing this the SFTP doesn&#039;t work properly anymore. If I revert to &amp;quot;cmd.exe&amp;quot;, it works. I have to install FileZilla Server to use FTPS instead. 
&lt;br /&gt;

&lt;br /&gt;
At the end, it should be way easier if the CLI debugging is aware how to run in the CMD instead of cygwin and bash.&lt;/span&gt;&lt;br /&gt;
</description>
<dc:creator>carlosh</dc:creator>
<dc:subject>PhpED PHP IDE</dc:subject>
<annotate:reference rdf:resource="http://forum.nusphere.com/viewtopic.php?p=37525#37525" />
<comments>http://forum.nusphere.com/posting.php?mode=quote&amp;p=37539</comments>
</item>
</channel>
</rss><!-- Page generation time: 0.0082s  - GZIP disabled -->