Question - how to leave the connection open without a tty
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?
Hi, I have the same problem. Did you solve it?
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:
https://github.com/gliderlabs/ssh/blob/30ec06db4e743ac9f827a69c8b8cfb84064a6dc7/_examples/ssh-docker/docker.go#L17-L30
Hi @ZhangKingsasa. In the end we used https://github.com/openssh/openssh-portable instead for our use case.
@ZhangKingsasa Could you please close this issue?