For instance:
$ssh->system({tty => 1}, ssh => $hostB, $commandB); [download]
In reply to Re^2: Multi-hops with Net::OpenSSH by salva in thread Multi-hops with Net::OpenSSH by silent11