Help for this page

Select Code to Download


  1. or download this
    ================================================
    my($host, $username, $new_password, $old_password);
    ...
    $ssh->login($username, $password);
    my ($stdout, $stderr, $exit) = $ssh->cmd('ls > /tmp/foo.out',"\n");
    =========================================================
    
  2. or download this
    my ($stdout, $stderr, $exit) = $ssh->cmd('ls',"\n");
    
  3. or download this
    Reading configuration data C:\Documents and Settings\myname/.ssh/con
    Reading configuration data /etc/ssh_config
    ...
    channel 1: send eof
    channel 1: open confirm rwindow 131071 rmax 32768
    =======> Hangs Here.
    
  4. or download this
    Sending command: ls
    Requesting service exec on channel 1.
    ...
    channel 1: rcvd close
    channel 1: full closed
    =======> script exits normally