Net::SSH::AuthorizedKeysFile

Read and modify SSH's authorized_keys files
Download

Net::SSH::AuthorizedKeysFile Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Michael Schilli
  • Publisher web site:
  • http://search.cpan.org/~mschilli/

Net::SSH::AuthorizedKeysFile Tags


Net::SSH::AuthorizedKeysFile Description

Net::SSH::AuthorizedKeysFile is a Perl module that reads and modifies authorized_keys files. authorized_keys files contain public keys and meta information to be used by SSH on the remote host to let users in without having to type their password.SYNOPSIS use Net::SSH::AuthorizedKeysFile; # Reads $HOME/.ssh/authorized_keys by default my $akf = Net::SSH::AuthorizedKeysFile->new(); $akf->read("authorized_keys"); # Iterate over entries for my $key ($akf->keys()) { print $key->as_string(), "\n"; } # Modify entries: for my $key ($akf->keys()) { $key->option("from", 'quack@quack.com'); $key->keylen(1025); } # Save changes back to $HOME/.ssh/authorized_keys $akf->save() or die "Cannot save";Product's homepage


Net::SSH::AuthorizedKeysFile Related Software