Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Net::SSH::Perl problems with $ssh->login and $ssh->cmd - function

by polyp (Initiate)
on Jun 25, 2003 at 12:09 UTC ( [id://268825]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print("Username: ");
    $user = <STDIN>;
    ...
    $ssh->login($user,$pass); 
    
    # $ssh is introduced earlier, of course
    
  2. or download this
    input must be 8 bytes long at /usr/lib/perl5/site_perl/5.8.0/i386-linu
    +x-thread-multi/Crypt/DES.pm line 57.
    
  3. or download this
    #source: 
    
    $ssh->login("root","root_pass");
    
  4. or download this
    $ssh->cmd($curr_cmd); does not work
    $ssh->cmd("ls -l"); DOES work !
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://268825]
Approved by martymart
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-04-19 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found