Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by polyp (Initiate)
on Jun 25, 2003 at 12:09 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-12-02 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (16 votes). Check out past polls.

    Notices?