Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!usr/bin/perl
  2. use strict;
  3. use Net::SSH::Perl;
  4. my $host = "abcd.xyx.net";
  5. my $ssh = Net::SSH::Perl->new($host);
  6. my $username = "xyzuser";
  7. my $password = "xyz2017";
  8. my $cmd = "/bin/ls";
  9. $ssh->login($username, $password);
  10. $ssh->cmd($cmd);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement