# phpman > perldoc > Crypt::DSA::Key::SSH2

## NAME
    [Crypt::DSA::Key::SSH2](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey%3A%3ASSH2/markdown) - Read/write DSA SSH2 files

## SYNOPSIS
        use [Crypt::DSA::Key](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey/markdown);
        my $key = [Crypt::DSA::Key](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey/markdown)->new( Type => 'SSH2', ...);
        $key->write( Type => 'SSH2', ...);

## DESCRIPTION
    *[Crypt::DSA::Key::SSH2](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey%3A%3ASSH2/markdown)* provides an interface to reading and writing DSA SSH2 files, using
    *[Data::Buffer](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ABuffer/markdown)*, which provides functionality for SSH-compatible binary in/out buffers.

    Currently encrypted key files are not supported.

    You shouldn't use this module directly. As the SYNOPSIS above suggests, this module should be
    considered a plugin for *[Crypt::DSA::Key](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey/markdown)*, and all access to SSH2 files (reading DSA keys from
    disk, etc.) should be done through that module.

    Read the *[Crypt::DSA::Key](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AKey/markdown)* documentation for more details.

AUTHOR & COPYRIGHTS
    Please see the [Crypt::DSA](https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA/markdown) manpage for author, copyright, and license information.

