1Net::SSH::Perl::SSH1(3)User Contributed Perl DocumentatioNnet::SSH::Perl::SSH1(3)
2
3
4
6 Net::SSH::Perl::SSH1 - SSH1 implementation
7
9 use Net::SSH::Perl;
10 my $ssh = Net::SSH::Perl->new($host, protocol => 1);
11
13 Net::SSH::Perl::SSH1 implements the SSH1 protocol. It is a subclass of
14 Net::SSH::Perl, and implements the interface described in the
15 documentation for that module. In fact, your usage of this module
16 should be completely transparent; simply specify the proper protocol
17 value (1) when creating your Net::SSH::Perl object, and the SSH1
18 implementation will be loaded automatically.
19
20 NOTE: Of course, this is still subject to protocol negotiation with the
21 server; if the server doesn't support SSH1, there's not much the client
22 can do, and you'll get a fatal error if you use the above protocol
23 specification (1).
24
26 Net::SSH::Perl::SSH1 shares the interface described by Net::SSH::Perl.
27 In addition, you can call the following "advanced" methods on a
28 Net::SSH::Perl::SSH1 object, that do not apply to a regular
29 Net::SSH::Perl object.
30
31 $ssh->set_cipher($cipher_name)
32 Sets the cipher for the SSH session $ssh to $cipher_name (which must be
33 a valid cipher name), and turns on encryption for that session.
34
35 $ssh->send_cipher
36 Returns the "send" cipher object. This is the object that encrypts
37 outgoing data.
38
39 If it's not defined, encryption is not turned on for the session.
40
41 $ssh->receive_cipher
42 Returns the "receive" cipher object. This is the object that decrypts
43 incoming data.
44
45 If it's not defined, encryption is not turned on for the session.
46
47 NOTE: the send and receive ciphers and two different objects, each with
48 its own internal state (initialization vector, in particular). Thus
49 they cannot be interchanged.
50
51 $ssh->compression([ $level ])
52 Without arguments, returns the current compression level for the
53 session. If given an argument $level, sets the compression level and
54 turns on compression for the session.
55
56 Note that this should not be used to turn compression off. In fact, I
57 don't think there's a way to turn compression off. But in other words,
58 don't try giving this method a value of 0 and expect that to turn off
59 compression. It won't.
60
61 If the return value of this method is undefined or 0, compression is
62 turned off.
63
64 $ssh->session_key
65 Returns the session key, which is simply 32 bytes of random data and is
66 used as the encryption/decryption key.
67
68 AUTHOR & COPYRIGHTS
69 Please see the Net::SSH::Perl manpage for author, copyright, and
70 license information.
71
72
73
74perl v5.30.0 2019-07-26 Net::SSH::Perl::SSH1(3)