Net::SS...l::SSH1(3)
π Net::SS...l::SSH1 β the SSH1 era, but make it iconic π
okay bestie, pull up a chair because we're talking about Net::SSH::Perl::SSH1 from the User Contributed Perl Documentation shelf. this is the SSH1 implementation, and she's a whole mood π¦
β¨ NAME β¨
Net::SSH::Perl::SSH1 β SSH1 implementation, no cap π
πΈ SYNOPSIS πΈ
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new($host, protocol => 1);
literally that's it. one little protocol => 1 and you're in your SSH1 era β¨
π DESCRIPTION π
so Net::SSH::Perl::SSH1 implements the SSH1 protocol. she's a subclass of Net::SSH::Perl, and she implements the interface that's described over in that module's documentation. the way this works is: your usage of this module should be completely transparent. like, you literally just specify the proper protocol value (1) when you're creating your Net::SSH::Perl object, and the SSH1 implementation gets loaded automatically. you don't even have to think about it. queen behavior π
NOTE: okay but real talk β this is still subject to protocol negotiation with the server. so if the server doesn't support SSH1, there's not much the client can do about it π and you'll get a fatal error if you use that protocol specification (1) above. not a vibe, but forewarned is forearmed, iykyk.
π USAGE π
Net::SSH::Perl::SSH1 shares the interface described by Net::SSH::Perl. but bestie, there's more. in addition to all that, you can call the following "advanced" methods on a Net::SSH::Perl::SSH1 object β and these ones do not apply to a regular Net::SSH::Perl object. special girl privileges only π
π $ssh->set_cipher($cipher_name)
sets the cipher for the SSH session $ssh to $cipher_name (which must be a valid cipher name, okay? no making things up), and turns on encryption for that session. slay π₯
π€ $ssh->send_cipher
returns the "send" cipher object. this is the object that encrypts outgoing data. she's the one doing the talking π¨
if it's not defined, encryption is not turned on for the session.
π₯ $ssh->receive_cipher
returns the "receive" cipher object. this is the object that decrypts incoming data. she's the one listening π§
if it's not defined, encryption is not turned on for the session.
NOTE: the send and receive ciphers are two different objects, each with its own internal state (initialization vector, in particular). so like... they cannot be interchanged. do not try it. they're different girls with different personalities π
ποΈ $ssh->compression([ $level ])
without arguments, returns the current compression level for the session. if you give it an argument $level, it sets the compression level and turns on compression for the session. multitasking icon β
Note that this should not be used to turn compression off. in fact, i don't think there's a way to turn compression off?? so like. in other words, don't try giving this method a value of 0 and expect that to turn off compression. it won't. periodt π
if the return value of this method is undefined or 0, compression is turned off.
π $ssh->session_key
returns the session key, which is simply 32 bytes of random data and is used as the encryption/decryption key. 32 bytes of pure chaotic main character energy β¨
π AUTHOR & COPYRIGHTS π
please see the Net::SSH::Perl manpage for author, copyright, and license information. she's got the receipts over there π«Ά
and that's the whole page, bestie β written for perl v5.42.0, dated 2026-01-17, from Net::SS...l::SSH1(3) in the User Contributed Perl Documentation. mwah π go forth and encrypt responsibly ππ
π¦ 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