if($ssh2-> auth_password('user', 'pass')){ print "ok"; my $chan2 = $ssh2-> channel(); $ssh2-> ($chan2);