Linux ssh问题在调试结果中缺少这一行;调试1:通道0:强制写入“;

Linux ssh问题在调试结果中缺少这一行;调试1:通道0:强制写入“;,linux,windows,ssh,Linux,Windows,Ssh,当我执行从Linux服务器到Windows one的远程ssh命令时,结果命令不会清空到分配的通道。 ssh命令是: ssh -vvv -o BatchMode=yes -o ConnectTimeout=40 -o GSSAPIAuthentication=no $1 'cmd.exe /c echo 0'||echo 1 2>>$TempPath/$ErrorFile 从ssh命令的调试中,我观察到这一行: debug1: channel 0: forcing write 它

当我执行从Linux服务器到Windows one的远程
ssh
命令时,结果命令不会清空到分配的通道。 ssh命令是:

ssh -vvv -o BatchMode=yes -o ConnectTimeout=40 -o GSSAPIAuthentication=no $1 'cmd.exe /c echo 0'||echo 1 2>>$TempPath/$ErrorFile
从ssh命令的调试中,我观察到这一行:

debug1: channel 0: forcing write
它不存在

相反,当在另一台windows服务器上成功执行同一命令时,该行出现。 从调试ssh日志中,我还注意到通过publickey进行的ssh身份验证已经成功,尽管如此,结果并没有返回。 此外,重要的是,shell脚本(包含ssh连接的测试循环)是通过从html页面调用ajax jquery命令来执行的

如果直接从linux提示符命令执行相同的脚本,则循环中的所有windows服务器都正确地回复ssh命令。 但这不会发生在从broswer跑来的时候。考虑到“守护程序用户”用于从broswer运行脚本,他与从prompt命令运行脚本的用户相同。 我真的希望有人能帮助我解决这个问题