-
Notifications
You must be signed in to change notification settings - Fork 463
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
Question - how to leave the connection open without a tty #171
Comments
Hi, I have the same problem. |
Hi @ZhangKingsasa. In the end we used https://github.com/openssh/openssh-portable instead for our use case. |
You can get that information from the session. Here's a hint from the example: ssh/_examples/ssh-docker/docker.go Lines 17 to 30 in 30ec06d
|
@ZhangKingsasa Could you please close this issue? |
I'm trying to create a installable binary that supports the
-T
option (no tty) so I can use it to connect to with VSCode's remote option.VSCode fails to connect with a
Failed to parse remote port from server output
error - I'm not certain, but I expect this is because it sends the-T
option, but then the ssh server immediately closes the connection because there is no command or tty.What code do I need to leave the connection open without having a tty?
The text was updated successfully, but these errors were encountered: