dartssh2 icon indicating copy to clipboard operation
dartssh2 copied to clipboard

ssh设置环境变量会导致start pty fail

Open itzhoujun opened this issue 1 year ago • 1 comments
trafficstars

    final session = await client.shell(
      pty: SSHPtyConfig(
        width: terminal.viewWidth,
        height: terminal.viewHeight,
      ),
      environment: {"NEWBBY": "1"}
    );

image

itzhoujun avatar Jun 25 '24 15:06 itzhoujun

进展:经过排查发现,不是start pty失败,而是send env失败。由于send env没有await等待reply结果,导致send env的reply被误认为是start pty的失败。实际上pty是可以成功的,失败的是send env

itzhoujun avatar Jun 25 '24 16:06 itzhoujun