Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Using local perl modules on remote SSH

by hsinclai (Deacon)
on Feb 09, 2011 at 15:12 UTC ( [id://887219]=note: print w/replies, xml ) Need Help??


in reply to Using local perl modules on remote SSH

Is your actual task changing user passwords on remote boxes?

Unless you have to do other tasks /locally/ on the remote machines, it seems overengineering to install modules, etc etc, just in order to do many password changes.

Consider doing your work (generating passwords with crypt ?) on the controlling side and using Net::OpenSSH to connect to the remote boxes and execute the 'usermod' program (I'm assuming linux/solaris) on the remote host which will save you a lot of coding work, is native to the system in question's configured passwd encryption formats and just lets you change a password with a single command.

  • Comment on Re: Using local perl modules on remote SSH

Replies are listed 'Best First'.
Re^2: Using local perl modules on remote SSH
by rastoboy (Monk) on Feb 10, 2011 at 02:13 UTC
    Thanks All, some very interesting and helpful ideas!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found