net-ssh 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/manual-html/chapter-1.html +3 -3
- data/doc/manual-html/chapter-2.html +2 -5
- data/doc/manual-html/chapter-3.html +2 -2
- data/doc/manual-html/chapter-4.html +2 -2
- data/doc/manual-html/chapter-5.html +2 -2
- data/doc/manual-html/chapter-6.html +2 -2
- data/doc/manual-html/chapter-7.html +2 -2
- data/doc/manual-html/index.html +6 -8
- data/doc/manual/manual.yml +3 -4
- data/doc/manual/parts/0002.txt +1 -1
- data/doc/manual/parts/0007.txt +0 -2
- data/lib/net/ssh/transport/packet-stream.rb +5 -6
- data/lib/net/ssh/version.rb +1 -1
- metadata +2 -2
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -255,7 +255,7 @@
|
|
255
255
|
<p>Furthermore, you must make sure that Ruby’s OpenSSL module has been compiled against <em>at least</em> version 0.9.7 of the OpenSSL library. Prior versions lacked functionality that Net::SSH depends on (notably, the ‘padding’ property of ciphers).</p>
|
256
256
|
|
257
257
|
|
258
|
-
<p>Optionally, you can install the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a
|
258
|
+
<p>Optionally, you can install the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a>. If you do, then your passwords won’t be echoed to the screen when prompting you for the passphrases needed to load your keys (if your keys have passphrases).</p>
|
259
259
|
|
260
260
|
|
261
261
|
<h3>Using <a href="http://rubygems.rubyforge.org">RubyGems</a></h3>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -359,9 +359,6 @@
|
|
359
359
|
<p>When you use a private key that was created with a passphrase, you will be prompted to enter the passphrase when the key is loaded. This may make such a key inappropriate for use in automated environments, but it is certainly more secure than the use of unprotected private keys.</p>
|
360
360
|
|
361
361
|
|
362
|
-
<p>If you have the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a> and <a href="http://raa.ruby-lang.org/project/ruby-password">ruby-password</a> modules installed, the ruby-password module will be used when prompting for passphrases. Otherwise, a generic message (courtesy of the OpenSSL library) will be presented, which will not be very informative.</p>
|
363
|
-
|
364
|
-
|
365
362
|
<h3>Using an <span class="caps">SSH</span> agent</h3>
|
366
363
|
|
367
364
|
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
data/doc/manual-html/index.html
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Net::SSH Version: <strong>1.0.
|
18
|
-
Manual Last Updated: <strong>2006-01-
|
17
|
+
Net::SSH Version: <strong>1.0.7</strong><br />
|
18
|
+
Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -205,10 +205,6 @@
|
|
205
205
|
|
206
206
|
API Documentation: <a href="http://net-ssh.rubyforge.org/api">http://net-ssh.rubyforge.org/api</a><br />
|
207
207
|
|
208
|
-
FAQ Document: <a href="http://net-ssh.rubyforge.org/faq.html">http://net-ssh.rubyforge.org/faq.html</a><br />
|
209
|
-
|
210
|
-
Net::SSH Wiki: <a href="http://net-ssh.rubyforge.org/wiki/wiki.pl">http://net-ssh.rubyforge.org/wiki/wiki.pl</a><br />
|
211
|
-
|
212
208
|
</p>
|
213
209
|
|
214
210
|
|
@@ -216,14 +212,16 @@
|
|
216
212
|
<table border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>
|
217
213
|
<ul>
|
218
214
|
|
219
|
-
<li>
|
215
|
+
<li>Removed documentation indicating that ruby-password will be used if present (it won't)</li>
|
216
|
+
|
217
|
+
<li>Removed links to the wiki (which wasn't being used) and the faq (which never existed)</li>
|
220
218
|
|
221
219
|
</ul>
|
222
220
|
</table>
|
223
221
|
|
224
222
|
|
225
223
|
<p class="copyright">
|
226
|
-
Copyright ©
|
224
|
+
Copyright © 2004-2006
|
227
225
|
Jamis Buck
|
228
226
|
(<a href="mailto:jamis@jamisbuck.org">jamis@jamisbuck.org</a>)
|
229
227
|
</p>
|
data/doc/manual/manual.yml
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# http://creativecommons.org/licenses/by-sa/2.0/
|
7
7
|
|
8
8
|
meta: !^meta
|
9
|
-
copyright: 2004
|
9
|
+
copyright: 2004-2006
|
10
10
|
author: Jamis Buck
|
11
11
|
email: jamis@jamisbuck.org
|
12
12
|
|
@@ -19,11 +19,10 @@ product: !^product
|
|
19
19
|
- Project Page: http://rubyforge.org/projects/net-ssh
|
20
20
|
- User Manual: http://net-ssh.rubyforge.org
|
21
21
|
- API Documentation: http://net-ssh.rubyforge.org/api
|
22
|
-
- FAQ Document: http://net-ssh.rubyforge.org/faq.html
|
23
|
-
- Net::SSH Wiki: http://net-ssh.rubyforge.org/wiki/wiki.pl
|
24
22
|
|
25
23
|
recent_updates:
|
26
|
-
- "
|
24
|
+
- "Removed documentation indicating that ruby-password will be used if present (it won't)"
|
25
|
+
- "Removed links to the wiki (which wasn't being used) and the faq (which never existed)"
|
27
26
|
|
28
27
|
chapters:
|
29
28
|
|
data/doc/manual/parts/0002.txt
CHANGED
@@ -4,7 +4,7 @@ In order to use Net::SSH, you must be using a supported version of Ruby's OpenSS
|
|
4
4
|
|
5
5
|
Furthermore, you must make sure that Ruby's OpenSSL module has been compiled against _at least_ version 0.9.7 of the OpenSSL library. Prior versions lacked functionality that Net::SSH depends on (notably, the 'padding' property of ciphers).
|
6
6
|
|
7
|
-
Optionally, you can install the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios
|
7
|
+
Optionally, you can install the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios. If you do, then your passwords won't be echoed to the screen when prompting you for the passphrases needed to load your keys (if your keys have passphrases).
|
8
8
|
|
9
9
|
h3. Using "RubyGems":http://rubygems.rubyforge.org
|
10
10
|
|
data/doc/manual/parts/0007.txt
CHANGED
@@ -50,8 +50,6 @@ h3. Using keys with passphrases
|
|
50
50
|
|
51
51
|
When you use a private key that was created with a passphrase, you will be prompted to enter the passphrase when the key is loaded. This may make such a key inappropriate for use in automated environments, but it is certainly more secure than the use of unprotected private keys.
|
52
52
|
|
53
|
-
If you have the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios and "ruby-password":http://raa.ruby-lang.org/project/ruby-password modules installed, the ruby-password module will be used when prompting for passphrases. Otherwise, a generic message (courtesy of the OpenSSL library) will be presented, which will not be very informative.
|
54
|
-
|
55
53
|
h3. Using an SSH agent
|
56
54
|
|
57
55
|
Most SSH clients come with what is called an _agent_. This is a program that is continually running, and which keeps track of all of a user's keys. When an SSH client needs to perform an operation using one of the user's keys, it requests the operation via the agent, rather than performing the operation itself directly with a key.
|
@@ -166,6 +166,10 @@ module Net
|
|
166
166
|
# read the remainder of the packet and decrypt it.
|
167
167
|
data = read( remaining_to_read )
|
168
168
|
|
169
|
+
# get the hmac from the tail of the packet (if one exists), and
|
170
|
+
# then validate it.
|
171
|
+
hmac = @hmac.mac_length > 0 ? read( @hmac.mac_length ) : ""
|
172
|
+
|
169
173
|
reader.append @cipher.update( data )
|
170
174
|
reader.append @cipher.final
|
171
175
|
|
@@ -174,13 +178,8 @@ module Net
|
|
174
178
|
payload = reader.read( packet_length - padding_length - 1 )
|
175
179
|
padding = reader.read( padding_length ) if padding_length > 0
|
176
180
|
|
177
|
-
# get the hmac from the tail of the packet (if one exists), and
|
178
|
-
# then validate it.
|
179
|
-
hmac = @hmac.mac_length > 0 ? @socket.recv( @hmac.mac_length ) : ""
|
180
|
-
|
181
181
|
my_computed_hmac = compute_hmac( reader.content )
|
182
|
-
raise Net::SSH::Exception,
|
183
|
-
"corrupted mac detected" if hmac != my_computed_hmac
|
182
|
+
raise Net::SSH::Exception, "corrupted mac detected" if hmac != my_computed_hmac
|
184
183
|
|
185
184
|
# decompress the payload
|
186
185
|
payload = @decompressor.decompress( payload )
|
data/lib/net/ssh/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: net-ssh
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-01-
|
6
|
+
version: 1.0.7
|
7
|
+
date: 2006-01-27 00:00:00 -07:00
|
8
8
|
summary: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
|
9
9
|
require_paths:
|
10
10
|
- lib
|