Need to use ssh's «-n» option here so that stdin can't be messed with.