Net::SS...l::SSH1(3)

πŸ“¦
version 2.144 Β· 4 versions
, in fedora 44

πŸ’– 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