platform9 / ssh-provider

SSH Machine Controller for the Cluster API
11 stars 4 forks source link

Impose deadline on ssh commands #32

Open dlipovetsky opened 6 years ago

dlipovetsky commented 6 years ago

The right way would be to send a signal, but that's not supported by OpenSSH. See https://github.com/golang/go/issues/16597.

Alternative is to wrap all commands with https://linux.die.net/man/1/timeout.