net-ssh 0.9.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/manual/manual.rb +2 -2
- data/doc/manual/parts/intro_what_is.txt +0 -2
- data/lib/net/ssh/connection/channel.rb +42 -3
- data/lib/net/ssh/service/forward/driver.rb +1 -1
- data/lib/net/ssh/service/forward/local-network-handler.rb +10 -13
- data/lib/net/ssh/service/forward/remote-network-handler.rb +5 -3
- data/lib/net/ssh/transport/packet-stream.rb +25 -11
- data/lib/net/ssh/transport/session.rb +10 -2
- data/lib/net/ssh/userauth/driver.rb +7 -0
- data/lib/net/ssh/userauth/methods/services.rb +14 -9
- data/lib/net/ssh/version.rb +2 -2
- data/test/connection/tc_channel.rb +2 -2
- data/test/proxy/tc_http.rb +1 -1
- data/test/proxy/tc_socks4.rb +1 -1
- data/test/proxy/tc_socks5.rb +1 -1
- data/test/service/forward/tc_remote_network_handler.rb +5 -2
- metadata +2 -14
- data/doc/manual-html/chapter-1.html +0 -368
- data/doc/manual-html/chapter-2.html +0 -496
- data/doc/manual-html/chapter-3.html +0 -452
- data/doc/manual-html/chapter-4.html +0 -393
- data/doc/manual-html/chapter-5.html +0 -505
- data/doc/manual-html/chapter-6.html +0 -432
- data/doc/manual-html/chapter-7.html +0 -331
- data/doc/manual-html/index.html +0 -243
- data/doc/manual-html/stylesheets/manual.css +0 -265
- data/doc/manual-html/stylesheets/ruby.css +0 -17
data/doc/manual-html/index.html
DELETED
@@ -1,243 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>Net::SSH Manual</title>
|
4
|
-
<link type="text/css" rel="stylesheet" href="stylesheets/manual.css" />
|
5
|
-
</head>
|
6
|
-
|
7
|
-
<body>
|
8
|
-
<div id="banner">
|
9
|
-
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
10
|
-
<tr><td valign='top' align='left'>
|
11
|
-
<div class="title">
|
12
|
-
<span class="product">Net::SSH—</span><br />
|
13
|
-
<span class="tagline">Secure Shell for Ruby</span>
|
14
|
-
</div>
|
15
|
-
</td><td valign='middle' align='right'>
|
16
|
-
<div class="info">
|
17
|
-
Net::SSH Version: <strong>0.9.0</strong><br />
|
18
|
-
Manual Last Updated: <strong>2005-01-11 21:39 GMT</strong>
|
19
|
-
</div>
|
20
|
-
</td></tr>
|
21
|
-
</table>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<table border='0' width='100%' cellpadding='0' cellspacing='0'>
|
25
|
-
<tr><td valign='top'>
|
26
|
-
|
27
|
-
<div id="navigation">
|
28
|
-
<h1>Net::SSH Manual</h1>
|
29
|
-
|
30
|
-
<h2>Chapters</h2>
|
31
|
-
<ol type="I">
|
32
|
-
|
33
|
-
<li>
|
34
|
-
<a href="chapter-1.html">
|
35
|
-
Introduction
|
36
|
-
</a>
|
37
|
-
|
38
|
-
<ol type="1">
|
39
|
-
|
40
|
-
<li><a href="chapter-1.html#s1">What is Net::SSH?</a></li>
|
41
|
-
|
42
|
-
<li><a href="chapter-1.html#s2">What isn’t Net::SSH?</a></li>
|
43
|
-
|
44
|
-
<li><a href="chapter-1.html#s3">Getting Net::SSH</a></li>
|
45
|
-
|
46
|
-
<li><a href="chapter-1.html#s4">License Information</a></li>
|
47
|
-
|
48
|
-
<li><a href="chapter-1.html#s5">Support</a></li>
|
49
|
-
|
50
|
-
<li><a href="chapter-1.html#s6">About the Author</a></li>
|
51
|
-
|
52
|
-
</ol>
|
53
|
-
</li>
|
54
|
-
|
55
|
-
<li>
|
56
|
-
<a href="chapter-2.html">
|
57
|
-
Starting a Session
|
58
|
-
</a>
|
59
|
-
|
60
|
-
<ol type="1">
|
61
|
-
|
62
|
-
<li><a href="chapter-2.html#s1">Using Net::SSH.start</a></li>
|
63
|
-
|
64
|
-
<li><a href="chapter-2.html#s2">Using a Public/Private Key</a></li>
|
65
|
-
|
66
|
-
<li><a href="chapter-2.html#s3">Options</a></li>
|
67
|
-
|
68
|
-
<li><a href="chapter-2.html#s4">Using Net::SSH::Session</a></li>
|
69
|
-
|
70
|
-
</ol>
|
71
|
-
</li>
|
72
|
-
|
73
|
-
<li>
|
74
|
-
<a href="chapter-3.html">
|
75
|
-
Channels
|
76
|
-
</a>
|
77
|
-
|
78
|
-
<ol type="1">
|
79
|
-
|
80
|
-
<li><a href="chapter-3.html#s1">What are Channels?</a></li>
|
81
|
-
|
82
|
-
<li><a href="chapter-3.html#s2">Session.loop</a></li>
|
83
|
-
|
84
|
-
<li><a href="chapter-3.html#s3">Channel Types</a></li>
|
85
|
-
|
86
|
-
<li><a href="chapter-3.html#s4">Opening a Channel</a></li>
|
87
|
-
|
88
|
-
<li><a href="chapter-3.html#s5">Callbacks</a></li>
|
89
|
-
|
90
|
-
<li><a href="chapter-3.html#s6">Channel Operations</a></li>
|
91
|
-
|
92
|
-
</ol>
|
93
|
-
</li>
|
94
|
-
|
95
|
-
<li>
|
96
|
-
<a href="chapter-4.html">
|
97
|
-
Executing Commands
|
98
|
-
</a>
|
99
|
-
|
100
|
-
<ol type="1">
|
101
|
-
|
102
|
-
<li><a href="chapter-4.html#s1">Using Channels</a></li>
|
103
|
-
|
104
|
-
<li><a href="chapter-4.html#s2">Using #process.open</a></li>
|
105
|
-
|
106
|
-
<li><a href="chapter-4.html#s3">Using #process.popen3</a></li>
|
107
|
-
|
108
|
-
</ol>
|
109
|
-
</li>
|
110
|
-
|
111
|
-
<li>
|
112
|
-
<a href="chapter-5.html">
|
113
|
-
User Shells
|
114
|
-
</a>
|
115
|
-
|
116
|
-
<ol type="1">
|
117
|
-
|
118
|
-
<li><a href="chapter-5.html#s1">Introduction</a></li>
|
119
|
-
|
120
|
-
<li><a href="chapter-5.html#s2">Using Channels</a></li>
|
121
|
-
|
122
|
-
<li><a href="chapter-5.html#s3">Shell Service</a></li>
|
123
|
-
|
124
|
-
<li><a href="chapter-5.html#s4">SyncShell Service</a></li>
|
125
|
-
|
126
|
-
<li><a href="chapter-5.html#s5">Terminal Clients</a></li>
|
127
|
-
|
128
|
-
</ol>
|
129
|
-
</li>
|
130
|
-
|
131
|
-
<li>
|
132
|
-
<a href="chapter-6.html">
|
133
|
-
Port Forwarding
|
134
|
-
</a>
|
135
|
-
|
136
|
-
<ol type="1">
|
137
|
-
|
138
|
-
<li><a href="chapter-6.html#s1">Introduction</a></li>
|
139
|
-
|
140
|
-
<li><a href="chapter-6.html#s2">Local-to-Remote</a></li>
|
141
|
-
|
142
|
-
<li><a href="chapter-6.html#s3">Remote-to-Local</a></li>
|
143
|
-
|
144
|
-
<li><a href="chapter-6.html#s4">Direct Channels</a></li>
|
145
|
-
|
146
|
-
<li><a href="chapter-6.html#s5">Remote-to-Local Handlers</a></li>
|
147
|
-
|
148
|
-
</ol>
|
149
|
-
</li>
|
150
|
-
|
151
|
-
<li>
|
152
|
-
<a href="chapter-7.html">
|
153
|
-
Using Proxies
|
154
|
-
</a>
|
155
|
-
|
156
|
-
<ol type="1">
|
157
|
-
|
158
|
-
<li><a href="chapter-7.html#s1">Introduction</a></li>
|
159
|
-
|
160
|
-
<li><a href="chapter-7.html#s2"><span class="caps">HTTP</span></a></li>
|
161
|
-
|
162
|
-
<li><a href="chapter-7.html#s3"><span class="caps">SOCKS</span></a></li>
|
163
|
-
|
164
|
-
</ol>
|
165
|
-
</li>
|
166
|
-
|
167
|
-
</ol>
|
168
|
-
|
169
|
-
<h2>Other Documentation</h2>
|
170
|
-
|
171
|
-
<ul>
|
172
|
-
<li><a href="http://net-ssh.rubyforge.org/api/index.html">Net::SSH API</a></li>
|
173
|
-
<li><a href="http://rubyforge.org/tracker/?atid=1842&group_id=274&func=browse">Net::SSH FAQ</a></li>
|
174
|
-
</ul>
|
175
|
-
|
176
|
-
<h2>Tutorials</h2>
|
177
|
-
<ol>
|
178
|
-
|
179
|
-
</ol>
|
180
|
-
|
181
|
-
<p align="center"><strong>More To Come...</strong></p>
|
182
|
-
|
183
|
-
<div class="license">
|
184
|
-
<a href="http://creativecommons.org/licenses/by-sa/2.0/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights" /></a><br />
|
185
|
-
This manual is licensed under a <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons License</a>.
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
</td><td valign='top' width="100%">
|
190
|
-
|
191
|
-
<div id="content">
|
192
|
-
|
193
|
-
<p class="product-manual">Product Manual</p>
|
194
|
-
|
195
|
-
<p align="center">
|
196
|
-
<img src=""
|
197
|
-
alt="Net::SSH: Secure Shell for Ruby" />
|
198
|
-
</p>
|
199
|
-
|
200
|
-
<p align="center">
|
201
|
-
|
202
|
-
Project Page: <a href="http://rubyforge.org/projects/net-ssh">http://rubyforge.org/projects/net-ssh</a><br />
|
203
|
-
|
204
|
-
User Manual: <a href="http://net-ssh.rubyforge.org">http://net-ssh.rubyforge.org</a><br />
|
205
|
-
|
206
|
-
API Documentation: <a href="http://net-ssh.rubyforge.org/api">http://net-ssh.rubyforge.org/api</a><br />
|
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
|
-
</p>
|
213
|
-
|
214
|
-
|
215
|
-
<p align="center"><strong>Recent Updates to This Manual</strong></p>
|
216
|
-
<table border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>
|
217
|
-
<ul>
|
218
|
-
|
219
|
-
<li>Next/Previous links on each chapter for easier navigation</li>
|
220
|
-
|
221
|
-
<li>Shell service</li>
|
222
|
-
|
223
|
-
<li>Enhancements to the channel and connection interfaces</li>
|
224
|
-
|
225
|
-
<li>Keyboard-interactive authentication method</li>
|
226
|
-
|
227
|
-
</ul>
|
228
|
-
</table>
|
229
|
-
|
230
|
-
|
231
|
-
<p class="copyright">
|
232
|
-
Copyright © 20042005
|
233
|
-
Jamis Buck
|
234
|
-
(<a href="mailto:jgb3@email.byu.edu">jgb3@email.byu.edu</a>)
|
235
|
-
</p>
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
|
240
|
-
</td></tr>
|
241
|
-
</table>
|
242
|
-
</body>
|
243
|
-
</html>
|
@@ -1,265 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background: #FFF;
|
3
|
-
font-family: sans-serif;
|
4
|
-
color: #000;
|
5
|
-
margin: 0px;
|
6
|
-
}
|
7
|
-
|
8
|
-
a {
|
9
|
-
color: #00F;
|
10
|
-
text-decoration: none;
|
11
|
-
}
|
12
|
-
|
13
|
-
a:hover {
|
14
|
-
text-decoration: underline;
|
15
|
-
}
|
16
|
-
|
17
|
-
.product-manual {
|
18
|
-
text-align: center;
|
19
|
-
font-size: x-large;
|
20
|
-
font-variant: small-caps;
|
21
|
-
font-weight: bold;
|
22
|
-
color: #005;
|
23
|
-
}
|
24
|
-
|
25
|
-
.copyright {
|
26
|
-
text-align: center;
|
27
|
-
font-size: small;
|
28
|
-
font-style: italic;
|
29
|
-
color: #005;
|
30
|
-
margin-top: 1in;
|
31
|
-
}
|
32
|
-
|
33
|
-
#banner {
|
34
|
-
background: #005;
|
35
|
-
color: #FFF;
|
36
|
-
border-bottom: 1px solid #000;
|
37
|
-
padding-top: 0.5em;
|
38
|
-
padding-bottom: 0.5em;
|
39
|
-
padding-left: 1em;
|
40
|
-
margin-bottom: 1em;
|
41
|
-
}
|
42
|
-
|
43
|
-
#banner .title {
|
44
|
-
font-size: x-large;
|
45
|
-
}
|
46
|
-
|
47
|
-
#banner .title:first-letter {
|
48
|
-
font-size: 250%;
|
49
|
-
font-weight: normal;
|
50
|
-
float: left;
|
51
|
-
margin-top: -7px;
|
52
|
-
margin-bottom: -7px;
|
53
|
-
}
|
54
|
-
|
55
|
-
#banner .product {
|
56
|
-
font-weight: bold;
|
57
|
-
color: #FF7;
|
58
|
-
letter-spacing: 0.5em;
|
59
|
-
}
|
60
|
-
|
61
|
-
#banner .tagline {
|
62
|
-
font-style: italic;
|
63
|
-
font-size: large;
|
64
|
-
letter-spacing: 0.1em;
|
65
|
-
color: #FFF;
|
66
|
-
}
|
67
|
-
|
68
|
-
#banner .info {
|
69
|
-
color: white;
|
70
|
-
font-size: small;
|
71
|
-
padding-right: 1em;
|
72
|
-
}
|
73
|
-
|
74
|
-
#content {
|
75
|
-
margin-left: 0cm;
|
76
|
-
margin-right: 1cm;
|
77
|
-
}
|
78
|
-
|
79
|
-
#navigation {
|
80
|
-
font-size: x-small;
|
81
|
-
border-right: 2px groove black;
|
82
|
-
border-top: 2px groove black;
|
83
|
-
margin-right: 1em;
|
84
|
-
width: 200px;
|
85
|
-
height: 100%;
|
86
|
-
background: #FFD;
|
87
|
-
}
|
88
|
-
|
89
|
-
#navigation ul, #navigation ol {
|
90
|
-
margin-left: 1.2em;
|
91
|
-
padding-left: 1.2em;
|
92
|
-
}
|
93
|
-
|
94
|
-
#navigation .license {
|
95
|
-
font-size: x-small;
|
96
|
-
text-align: center;
|
97
|
-
border-top: 1px dashed #005;
|
98
|
-
margin-top: 2em;
|
99
|
-
padding: 1em;
|
100
|
-
}
|
101
|
-
|
102
|
-
.section {
|
103
|
-
margin-bottom: 1em;
|
104
|
-
}
|
105
|
-
|
106
|
-
.section p {
|
107
|
-
text-align: justify;
|
108
|
-
}
|
109
|
-
|
110
|
-
#content h1 {
|
111
|
-
background: #005;
|
112
|
-
color: #FFF;
|
113
|
-
font-size: x-large;
|
114
|
-
font-weight: bold;
|
115
|
-
font-variant: small-caps;
|
116
|
-
padding: 0.5em;
|
117
|
-
border: 1px solid #000;
|
118
|
-
margin-top: 0px;
|
119
|
-
margin-bottom: 1em;
|
120
|
-
}
|
121
|
-
|
122
|
-
#content h2 {
|
123
|
-
background: #005;
|
124
|
-
color: #FFF;
|
125
|
-
font-size: large;
|
126
|
-
font-weight: bold;
|
127
|
-
font-variant: small-caps;
|
128
|
-
padding: 0.25em;
|
129
|
-
padding-left: 0.5em;
|
130
|
-
border: 1px solid #000;
|
131
|
-
margin-bottom: 1em;
|
132
|
-
}
|
133
|
-
|
134
|
-
#content h3 {
|
135
|
-
background: #FFD;
|
136
|
-
color: #000;
|
137
|
-
font-size: normal;
|
138
|
-
font-weight: bold;
|
139
|
-
font-variant: small-caps;
|
140
|
-
padding: 0.25em;
|
141
|
-
padding-left: 0.5em;
|
142
|
-
border: 1px dotted #000;
|
143
|
-
margin-bottom: 1em;
|
144
|
-
}
|
145
|
-
|
146
|
-
#content h4 {
|
147
|
-
background: #FFE;
|
148
|
-
color: #000;
|
149
|
-
font-size: normal;
|
150
|
-
font-weight: bold;
|
151
|
-
font-variant: small-caps;
|
152
|
-
padding: 0.25em;
|
153
|
-
padding-left: 0.5em;
|
154
|
-
border: 1px dotted #777;
|
155
|
-
margin-bottom: 1em;
|
156
|
-
}
|
157
|
-
|
158
|
-
#navigation h1 {
|
159
|
-
margin: 0px;
|
160
|
-
padding: 1em;
|
161
|
-
color: #005;
|
162
|
-
background: transparent;
|
163
|
-
font-weight: bold;
|
164
|
-
font-size: 150%;
|
165
|
-
font-variant: small-caps;
|
166
|
-
text-align: center;
|
167
|
-
}
|
168
|
-
|
169
|
-
#navigation h2 {
|
170
|
-
margin: 0px;
|
171
|
-
margin-bottom: 1em;
|
172
|
-
padding: 0.5em;
|
173
|
-
border-top: 1px dashed #005;
|
174
|
-
border-bottom: 1px dashed #005;
|
175
|
-
color: #005;
|
176
|
-
background: transparent;
|
177
|
-
font-weight: bold;
|
178
|
-
font-size: 125%;
|
179
|
-
font-variant: small-caps;
|
180
|
-
text-align: center;
|
181
|
-
}
|
182
|
-
|
183
|
-
table.list {
|
184
|
-
margin: 2em;
|
185
|
-
border: 1px solid black;
|
186
|
-
background: #FFD;
|
187
|
-
padding: 0px;
|
188
|
-
border-spacing: 0px;
|
189
|
-
}
|
190
|
-
|
191
|
-
table.list th {
|
192
|
-
border-bottom: 1px solid #005;
|
193
|
-
padding-bottom: 5px;
|
194
|
-
background: #008;
|
195
|
-
color: white;
|
196
|
-
padding: 0.5em;
|
197
|
-
text-align: left;
|
198
|
-
}
|
199
|
-
|
200
|
-
table.list td {
|
201
|
-
padding: 0.2em;
|
202
|
-
text-align: left;
|
203
|
-
vertical-align: top;
|
204
|
-
border-bottom: 1px solid;
|
205
|
-
}
|
206
|
-
|
207
|
-
.prevnext {
|
208
|
-
padding: 0.5em 1em 0.5em 1em;
|
209
|
-
background: #557;
|
210
|
-
color: #FFF;
|
211
|
-
font-size: small;
|
212
|
-
font-weight: bold;
|
213
|
-
border: 1px solid #000;
|
214
|
-
}
|
215
|
-
|
216
|
-
.prevnext a {
|
217
|
-
color: #FF0;
|
218
|
-
}
|
219
|
-
|
220
|
-
.top .prevnext {
|
221
|
-
margin: 0 0 1em 0;
|
222
|
-
text-align: left;
|
223
|
-
}
|
224
|
-
|
225
|
-
.bottom .prevnext {
|
226
|
-
margin: 1em 0 0 0;
|
227
|
-
text-align: right;
|
228
|
-
}
|
229
|
-
|
230
|
-
.figure {
|
231
|
-
border: 1px solid black;
|
232
|
-
line-height: normal;
|
233
|
-
background: #FFD;
|
234
|
-
margin: 2em;
|
235
|
-
}
|
236
|
-
|
237
|
-
.figure .caption {
|
238
|
-
background: #008;
|
239
|
-
color: white;
|
240
|
-
font-weight: bold;
|
241
|
-
font-size: small;
|
242
|
-
padding: 4px 24px 4px 8px;
|
243
|
-
margin-left: -4px;
|
244
|
-
border: 1px dotted #77F;
|
245
|
-
}
|
246
|
-
|
247
|
-
.figure .body {
|
248
|
-
padding-left: 1em;
|
249
|
-
}
|
250
|
-
|
251
|
-
.figure pre {
|
252
|
-
padding: 0px;
|
253
|
-
background: transparent;
|
254
|
-
border: none;
|
255
|
-
font-size: small;
|
256
|
-
font-family: mono;
|
257
|
-
}
|
258
|
-
|
259
|
-
.figure .lineno {
|
260
|
-
text-align: right;
|
261
|
-
color: #B00;
|
262
|
-
font-family: mono;
|
263
|
-
font-size: small;
|
264
|
-
padding-right: 1em;
|
265
|
-
}
|