Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Net::SSH::Perl and Passwd

by samwyse (Scribe)
on Aug 19, 2009 at 14:57 UTC ( #789838=note: print w/ replies, xml ) Need Help??


in reply to Net::SSH::Perl and Passwd

A couple of things... First, I think that the passwd command opens /dev/tty to make sure that no one has hijacked stdin/stdout/stderr. Second, the SSH protocol supports changing a password without using an external command. If you look at RFC 4252, the SSH_MSG_USERAUTH_REQUEST packet has an optional field to hold a new password. I found this node while looking to see if anyone's done this before; I'll be implementing it myself if I can't find anything.


Comment on Re: Net::SSH::Perl and Passwd
Re^2: Net::SSH::Perl and Passwd
by salva (Abbot) on Aug 19, 2009 at 18:21 UTC
    Quoting OpenSSH SSH server source code...
    if (change) logit("password change not supported");
    So even if it is in the RFC, the reality is that most server implementations are probably not supporting that feature :-(

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (18)
As of 2015-07-02 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls