Help for this page
$ssh->capture({ tty => 1, stdin_data => "$password\n" }, 'sudo', '-Sk', '-p', '', '--', 'su', '-lc', 'ls', imail' +);