#!/usr/bin/perl use Net::SSH::Perl; my $host = "hostname"; my $pass = "passwort"; my $user = "benutzername"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); # test-command ($out, $err, $exit) = $ssh->cmd("ls -l"); print ("$out"); print ("$err"); print ("$exit");