Thanks for the replies lads.
I had tried tinkering with the shell method myself in Net::SSH2 which was on the perlmonks website cause I thought this might be the workaround. Alas to no avail.It still closes the channel by it's own accord.
I actually have this working on Net::SSH::Perl::Buffer module but the problem I have with this method is that it is so slow in connecting to the host.It seems to be slow in regard to the key exchange. I had seen a lot on the web in regard to how to quicken it up by installing Math::BigINT::GMP but I saw no reduction in the time it took to connect to the host so I went back to Net::SSH2. So I was hoping that Net::SSH2 would have the solution as it is quicker on connecting to the host.
Another get-around is to use
system (ssh $host tail -f /log/log.txt);
and not use any Perl Modules but I feel this is almost cheating as I don't consider this true perl.
Anyone got any ideas on how to get a "tail -f " to work with Net::SSH2 or am I just wasting peoples time here.
Cheers,
Shooter