Advertisement
Guest User

Untitled

a guest
Apr 11th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. use Net::SSH::Any;
  2.  
  3. my $ssh = Net::SSH::Any->new('xx.xxx.xxx.xx', user => 'xxx', password => 'xxxx');
  4.  
  5. my @out = $ssh->capture('ls');
  6.  
  7. print @out;
  8.  
  9. C:UsersspectrumDesktop>perl SSH_Any.pl
  10. PTYs are not supported on Windows at SSH_Any.pl line 5.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement