in reply to Net::SSH2 Question - again-
Update: shmem wrote one that seems closer to what you are trying to do: Re: Net::SSH2 Interactive command example