my ($pty, $pid) = $ssh->open2pty({stderr_to_stdout => 1}, 'su', '-c', $command) or die "Can't open PTY: $!\n";