1Net::SSH::Perl::SSH1(3)User Contributed Perl DocumentatioNnet::SSH::Perl::SSH1(3)
2
3
4

NAME

6       Net::SSH::Perl::SSH1 - SSH1 implementation
7

SYNOPSIS

9           use Net::SSH::Perl;
10           my $ssh = Net::SSH::Perl->new($host, protocol => 1);
11

DESCRIPTION

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 documen‐
15       tation for that module. In fact, your usage of this module should be
16       completely transparent; simply specify the proper protocol value (1)
17       when creating your Net::SSH::Perl object, and the SSH1 implementation
18       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

USAGE

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
33       Sets the cipher for the SSH session $ssh to $cipher_name (which must be
34       a valid cipher name), and turns on encryption for that session.
35
36       $ssh->send_cipher
37
38       Returns the "send" cipher object. This is the object that encrypts out‐
39       going data.
40
41       If it's not defined, encryption is not turned on for the session.
42
43       $ssh->receive_cipher
44
45       Returns the "receive" cipher object. This is the object that decrypts
46       incoming data.
47
48       If it's not defined, encryption is not turned on for the session.
49
50       NOTE: the send and receive ciphers and two different objects, each with
51       its own internal state (initialization vector, in particular). Thus
52       they cannot be interchanged.
53
54       $ssh->compression([ $level ])
55
56       Without arguments, returns the current compression level for the ses‐
57       sion. If given an argument $level, sets the compression level and turns
58       on compression for the session.
59
60       Note that this should not be used to turn compression off. In fact, I
61       don't think there's a way to turn compression off. But in other words,
62       don't try giving this method a value of 0 and expect that to turn off
63       compression. It won't.
64
65       If the return value of this method is undefined or 0, compression is
66       turned off.
67
68       $ssh->session_key
69
70       Returns the session key, which is simply 32 bytes of random data and is
71       used as the encryption/decryption key.
72
73       AUTHOR & COPYRIGHTS
74
75       Please see the Net::SSH::Perl manpage for author, copyright, and
76       license information.
77
78
79
80perl v5.8.8                       2003-12-03           Net::SSH::Perl::SSH1(3)
Impressum