---
name: "Net::SSH::AuthorizedKey::Base"
section: "3pm"
platform: "linux"
package: "libnet-ssh-authorizedkeysfile-perl"
version: "0.18-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::SSH::AuthorizedKey::Base"
---

# Net::SSH::AuthorizedKey::Base(3pm)

Virtual Base Class for ssh keys

## NAME

Net::SSH::AuthorizedKey::Base - Virtual Base Class for ssh keys

## SYNOPSIS

```
    # Documentation to understand methods shared
    # by all parsers. Not for direct use.
```

## DESCRIPTION

This is the key parser base class, offering methods common to all parsers. Don't use it directly, but read the documentation below to see what functionality all parsers offer.

- **error()**

  If a parser fails for any reason, it will leave a textual description of the error that threw it off. This methods retrieves the error text.

- **options()**

  - **key()**

  The actual content of the key, either a big number in case of ssh-1 or a base64-encoded string for ssh-2.

- **type()**

  Type of a key. (Somewhat redundant, as you could also check what subclass a key is of). Either set to `"ssh-1"` or `"ssh-2"`.

- **email()**

  Identical with **comment()**.

- **comment()**

  Identical with **email()**. This is the text that follows in the authorized\_keys file after the key content. Mostly used for emails and host names.

## LEGALESE

Copyright 2005-2009 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

## AUTHOR

2005, Mike Schilli \<m@perlmeister.com\>
