Help for this page

Select Code to Download


  1. or download this
    
    use Net::SSH::Perl;
    ...
    #$scon->login("username","password");
    my($stdout, $stderr, $exit) = $ssh->cmd("foo");
    $ssh->close;
    
  2. or download this
    
    Error: Connection closed by remote host at D:\remote.pl line 40
    
  3. or download this
    
    use Net::Telnet();
    ...
    $telnet->open(host=> 'xx.xxx.xx.xxx', Port => 80); 
    $telnet->login('username', 'password'); 
    print $telnet->cmd('who');
    
  4. or download this
    
    Error: timed-out waiting for login prompt at D:\remote.pl line 74