Help for this page
use strict; use Net::SSH2; ... print $chan2 "who \n"; print "LINE : $_" while <$chan2>; $ssh2->disconnect();
Output # Connected to host 192.168.xx.xx Username/password is correct Error --> 0