Net::SS...erl::Kex(3)
π Net::SS...erl::Kex(3) π
okay bestie, welcome to the manual page for Net::SS...erl::Kex β it's part of the User Contributed Perl Documentation crew and it's literally all about SSH2 Key Exchange. pull up a chair, grab a boba, we're doing cryptography gossip π§β¨
β¨ NAME β¨
Net::SSH::Perl::Kex β SSH2 Key Exchange. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
the way you summon it is so simple, no cap:
use Net::SSH::Perl::Kex;
my $kex = Net::SSH::Perl::Kex->new($ssh);
$kex->exchange;
three lines. iconic. π
π¦ DESCRIPTION π¦
so Net::SSH::Perl::Kex implements the base functionality for SSH2 key exchange. and the basic idea, fr fr, is this:
- Kex itself initializes the client algorithm proposal, sends it over to the server, then waits for the server's proposal.
- From those proposals, Kex chooses the algorithms that'll be used in the communications between client and server β like the encryption algorithm, the MAC algorithm, etc.
- and get this: different algorithms can be used in each direction. for example, client-to-server communications could be encrypted using
3DES, and server-to-client could be encrypted usingRC4. two directions, two fits, we love range π
the algorithm negotiation phase, as described above, also includes negotiation for the key-exchange algorithm to be used. so once algorithm negotiation is done, the Kex object gets reblessed into the key exchange class β like 'Net::SSH::Perl::Kex::DH1' β and then the subclass's exchange method is called to actually perform the key exchange. glow-up complete, slay β¨
then, once control returns to Kex::exchange, the client waits for the SSH_MSG_NEWKEYS message. once it's received:
- the client turns on its incoming encryption/MAC/compression algorithms π
- then sends an
SSH_MSG_NEWKEYSmessage to the server π - and finally, it turns on its outgoing encryption/MAC/compression algorithms π
in that order. periodt.
π«Ά AUTHOR & COPYRIGHTS π«Ά
please see the Net::SSH::Perl manpage for author, copyright, and license information. i'm just the messenger bestie π
New key exchange mechanisms added by: Lance Kinley E<lkinley@loyaltymethods.com>
π POD ERRORS π
hey! the above document had some coding errors, which are explained below. not me snitching on the pod, but the parser said so π
Around line 334:
Unknown E content in E<lkinley@loyaltymethods.com>
it's giving "the email tag did not cooperate". we still love it. π
aaaand that's the whole page, bestie π this was perl v5.42.0, dated 2026-01-17, and it came to you straight from Net::SS...erl::Kex(3). go forth and exchange those keys responsibly. mwah πβ¨
π¦ where this page comes from
- fedora 44: perl-Net-SSH-Perl 2.144-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms