<?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, 19 Apr 2026 02:28:25 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=37546#37546</link>
<pubDate>Fri, 10 Apr 2026 01:17:51 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37546#37546</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 09, 2026 8:17 pm (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I will try those keystrokes to see if I get any solution (Oh my god I have not used Ctrl+Ins / Shift+Ins since Windows XP). As I said, it not big deal, but when I am debugging CLI scripts, sometimes I want to copy the output for reference between runs.
&lt;br /&gt;

&lt;br /&gt;
Yes, I have a bunch of Ubuntu servers, it will compare how the default shell files are configured to see if there is something that can be adjusted on the Cygwin shell.
&lt;br /&gt;

&lt;br /&gt;
Thank you Dmitri for your help and guidance. Let&#039;s complete this issue here. I tried to document all the steps required in case somebody else has this issue too.&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=37546</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=37545#37545</link>
<pubDate>Tue, 07 Apr 2026 12:26:15 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37545#37545</guid>
<description>Author: &lt;a href=&quot;member2.html&quot; target=&quot;_blank&quot;&gt;dmitri&lt;/a&gt;&lt;br /&gt;
Posted: Tue Apr 07, 2026 7:26 am (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Good job welding together two platforms -- the Unix-ported toolset and the Windows-ported version of OpenSSH originally built for Unix
&lt;br /&gt;

&lt;br /&gt;
As of TTY 
&lt;br /&gt;
-- the history -- it is handled on the shell (server) side, so it’s controlled by your Cygwin bash/zsh configuration files in the Cygwin home directory. You can add something like set +o history to your ~/.bashrc, or configure it globally via files in /etc/profile.d/ for all Cygwin users. First, check whether Ctrl+R works -- it triggers reverse history search. When you press it, bash should enter this mode. Start typing part of a previous command to search; if there are multiple matches, keep pressing Ctrl+R to cycle through them, then press Enter to select or Esc to cancel.
&lt;br /&gt;

&lt;br /&gt;
-- copy-paste -- they should work with Ctrl+Ins / Shift+Ins. You can also enable auto-copy so that selecting text with the mouse copies it automatically.
&lt;br /&gt;

&lt;br /&gt;
-- up-down -- the TERM variable may need adjustment in your ~/.bashrc. PhpED’s terminal supports only a subset of XTERM/XTERM256 features. If you have access to a Linux (like real linux or linux on windows) system, test it there and replicate any missing environment settings in your ~/.bashrc. It’s also possible that some required libraries for xterm support under Cygwin are not installed on the bash side.
&lt;br /&gt;

&lt;br /&gt;
-- DIR_COLORS -- it’s likely related to the same terminal capability configuration.
&lt;br /&gt;

&lt;br /&gt;
-- PuTTY supports a wide range of terminal types -- not just xterm, which may explain the difference. Find an xterm client created to test / validate shell and run it to validate your shell setup independently of both PuTTY and PhpED&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=37545</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=37544#37544</link>
<pubDate>Tue, 07 Apr 2026 02:40:43 GMT</pubDate>
<guid isPermaLink="true">http://forum.nusphere.com/viewtopic.php?p=37544#37544</guid>
<description>Author: &lt;a href=&quot;member9804.html&quot; target=&quot;_blank&quot;&gt;carlosh&lt;/a&gt;&lt;br /&gt;
Posted: Mon Apr 06, 2026 9:40 pm (GMT -5)&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Thanks that put me on the right track but needed more work. I tried `ForceCommand` the shell directly but it didn&#039;t work. The SSH starts but debugger never completes. But if I call the .bat file of Cygwin it works. I think it&#039;s because if I call the shell directly it doesn&#039;t allocate a TTY terminal while executing. That is why when I executed form the ssh client command, I needed to include the -t parameter.
&lt;br /&gt;

&lt;br /&gt;
However, as before, with any of both methods, the SFTP for this user didn&#039;t work. I didn&#039;t want to create a new user only for SFTP. I did more research and I found that when the `ForceCommand` is used, it overrides any other requested command. This is the root problem, when a STFP request is called the subsystem tries to run the `sftp-sever.exe` command, but because we are forcing it into another command then this is not executed anymore on SFTP. So, I created a new .bat for Cygwin to detect when there was a command to start with. The original `cygwin.bat` contained this:
&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;
@echo off
&lt;br /&gt;
setlocal enableextensions
&lt;br /&gt;
set TERM=
&lt;br /&gt;
cd /d &amp;quot;%~dp0bin&amp;quot; &amp;amp;&amp;amp; .bash --login -i
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
The improved version named `cygwin-mod.bat` contains this:
&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;
@echo off
&lt;br /&gt;
setlocal enableextensions
&lt;br /&gt;

&lt;br /&gt;
&amp;#58;&amp;#58; Capture the command into a variable safely
&lt;br /&gt;
set &amp;quot;REQ_CMD=%SSH_ORIGINAL_COMMAND%&amp;quot;
&lt;br /&gt;

&lt;br /&gt;
&amp;#58;&amp;#58; If REQ_CMD is empty, it&#039;s an interactive login -&amp;gt; Go to Bash
&lt;br /&gt;
if &amp;quot;x%REQ_CMD%x&amp;quot;==&amp;quot;xx&amp;quot; goto &amp;#58;launch_bash
&lt;br /&gt;

&lt;br /&gt;
&amp;#58;&amp;#58; Otherwise, it&#039;s an SFTP or other specific command request -&amp;gt; Execute it
&lt;br /&gt;
%REQ_CMD%
&lt;br /&gt;
exit /b %ERRORLEVEL%
&lt;br /&gt;

&lt;br /&gt;
&amp;#58;launch_bash
&lt;br /&gt;
set TERM=xterm-256color
&lt;br /&gt;
cd /d &amp;quot;%~dp0bin&amp;quot; &amp;amp;&amp;amp; .bash.exe --login -i
&lt;br /&gt;
exit /b %ERRORLEVEL%
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
Now on the `sshd_config` I have to be sure that contains these commands:
&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;
# override default of no subsystems
&lt;br /&gt;
Subsystem&amp;nbsp; &amp;nbsp;sftp&amp;nbsp; &amp;nbsp;sftp-server.exe
&lt;br /&gt;

&lt;br /&gt;
Match User deb_bug
&lt;br /&gt;
&amp;nbsp; ForceCommand C&amp;#58;\cygwin64\cygwin-mod.bat
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
With this, I can run SSH bash debugger on PHPEd and SFTP with the same user account, without forcing other accounts to use bash and/or potentially breaking the SFTP. 
&lt;br /&gt;

&lt;br /&gt;
Now a final possible improvement request (annoying but not show-stopper). The TTY terminal used on PHPEd is very utilitarian and not practical or user friendly (or maybe not modern standard). For example, it doesn&#039;t allow copy and paste, some advance ANSI codes are not render (e.g. DIR_COLORS), the bash history is not saved, arrow keys up and down does nothing. All these works properly when SSH from Windows terminal, PuTTY or MinTTY so it&#039;s no problem with the shell.&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=37544</comments>
</item>
</channel>
</rss><!-- Page generation time: 0.0082s  - GZIP disabled -->