Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 studying the Monastery: (5)
As of 2022-01-18 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (54 votes). Check out past polls.

    Notices?