1Net::SSH::Perl::Auth::PUassesrwoCrodn(t3r)ibuted Perl DoNceutm:e:nStSaHt:i:oPnerl::Auth::Password(3)
2
3
4
6 Net::SSH::Perl::Auth::Password - Password authentication plugin
7
9 use Net::SSH::Perl::Auth;
10 my $auth = Net::SSH::Perl::Auth->new('Password', $ssh);
11 print "Valid auth" if $auth->authenticate;
12
14 Net::SSH::Perl::Auth::Password performs password authentication with a
15 remote sshd server. When you create a new password auth object, you
16 give it an $ssh object, which should contain an open connection to an
17 ssh daemon, as well as the data that the authentication module needs to
18 proceed.
19
20 The authenticate method will enter into a dialog with the server. For
21 password authentication, all that needs to be done is to send a pass‐
22 word (encrypted by the standard SSH encryption layer) to the server,
23 and wait for its response. If the $ssh object doesn't already have a
24 password that you've given it, Net::SSH::Perl::Auth::Password will
25 check to see if you're in an interactive session (see the docs for
26 Net::SSH::Perl), and if so will issue a prompt, asking you to enter
27 your password. If the session is not interactive (if it's in batch
28 mode), we send a blank password to comply with the protocol, but odds
29 are the authentication will then fail.
30
32 Please see the Net::SSH::Perl manpage for author, copyright, and
33 license information.
34
35
36
37perl v5.8.8 2003-12-03 Net::SSH::Perl::Auth::Password(3)