|
NAMENet::SSH::Mechanize::ConnectParams - encapsulates information about an ssh connectionVERSIONversion 0.1.3SYNOPSISThis class is just a container for log-in details with a method which constructs an approprate "ssh" command invocation.This equates to "/usr/bin/ssh -t somewhere.com sh": my $minimal_params = Net::SSH::Mechanize::ConnectParams->new( host => 'somewhere.com', ); This equates to "/usr/bin/ssh -l someone -p 999 -t somewhere.com sh": my $all_params = Net::SSH::Mechanize::ConnectParams->new( host => 'somewhere.com', user => 'someone', port => 999, password => 'secret', ); CLASS METHODS"$obj = $class->new(%parameters)"Creates a new instance. Parameters is a hash or a list of key-value parameters. Valid parameter keys are:
INSTANCE ATTRIBUTES"$obj->host" =head2 "$obj->user" =head2 "$obj->password" =head2 "$obj->port"These are all read-write accessors for the attribute parameters accepted by the constructor.INSTANCE METHODS"$cmd = $obj->ssh_cmd"This constructs the "ssh" command to invoke. If you need something different, you can create a subclass which overrides this method, and pass that via the "connection_params" parameter to "Net::SSH::Mechanize->new()".AUTHORNick Stokoe "<wulee@cpan.org>"LICENCE AND COPYRIGHTCopyright (c) 2011, Nick Stokoe "<wulee@cpan.org>". All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
Visit the GSP FreeBSD Man Page Interface. |