Skip to content
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

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

Open
itzhoujun opened this issue Jun 25, 2024 · 1 comment
Open

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

itzhoujun opened this issue Jun 25, 2024 · 1 comment

Comments

@itzhoujun
Copy link

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

image

@itzhoujun
Copy link
Author

itzhoujun commented Jun 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant