Skip to content
Discussion options

You must be logged in to vote

It's supported, there's just one setting you have to declare — and it can't be auto-detected, since there's no reliable way to know a remote host's OS before running something on it. So the default is Linux, and your Windows box is being treated as one.

Add this to the server:

SSH_SERVER_WINBOX_PLATFORM=windows

or platform = "windows" if you're using the TOML format.

That error message is the giveaway. For Linux targets commands get wrapped for timeout enforcement, roughly timeout <n> sh -c '<your command>' — and neither timeout nor sh exists on Windows OpenSSH, so your command never actually runs. Once platform is set, that wrapper is skipped and the SSH library's own timeout is used ins…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melvynai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants