1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
|
<pre>Network Working Group J. Galbraith
Request for Comments: 4335 VanDyke Software
Category: Standards Track P. Remaker
Cisco Systems, Inc
January 2006
<span class="h1">The Secure Shell (SSH) Session Channel Break Extension</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2006).
Abstract
The Session Channel Break Extension provides a means to send a BREAK
signal over a Secure Shell (SSH) terminal session.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions Used in This Document ...............................<a href="#page-2">2</a>
<a href="#section-3">3</a>. The Break Request ...............................................<a href="#page-3">3</a>
<a href="#section-4">4</a>. Security Considerations .........................................<a href="#page-4">4</a>
<a href="#section-5">5</a>. IANA Considerations .............................................<a href="#page-4">4</a>
<a href="#section-6">6</a>. References ......................................................<a href="#page-4">4</a>
<a href="#section-6.1">6.1</a>. Normative References .......................................<a href="#page-4">4</a>
<a href="#section-6.2">6.2</a>. Informative References .....................................<a href="#page-5">5</a>
<span class="grey">Galbraith & Remaker Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4335">RFC 4335</a> SSH Break Extension January 2006</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Secure Shell (SSH) [<a href="#ref-5" title=""The Secure Shell (SSH) Connection Protocol"">5</a>] session channel provides a mechanism for
the client-user to interactively enter commands and receive output
from a remote host while taking advantage of the SSH transport's
privacy and integrity features. SSH is increasingly being used to
replace Telnet for terminal access applications.
A common application of the Telnet protocol is the "Console Server"
[<a href="#ref-7" title=""Greater Scroll of Console Knowledge"">7</a>] whereby a Telnet Network Virtual Terminal (NVT) can be connected
to a physical RS-232/V.24 asynchronous port, making the Telnet NVT
appear as a locally attached terminal to that port, and making that
physical port appear as a network-addressable device. A number of
major computer equipment vendors provide high-level administrative
functions through an asynchronous serial port and generally expect
the attached terminal to be capable of sending a BREAK signal.
A BREAK signal is defined as the TxD signal being held in a SPACE
("0") state for a time greater than a whole character time. In
practice, a BREAK signal is typically 250 to 500 ms in length.
The Telnet protocol furnishes a means to send a "BREAK" signal, which
<a href="./rfc854">RFC 854</a> [<a href="#ref-1" title=""Telnet Protocol Specification"">1</a>] defines as "a signal outside the USASCII set which is
currently given local meaning within many systems". Console Server
vendors interpret the TELNET BREAK signal as a physical BREAK signal,
which can then allow access to the full range of administrative
functions available on an asynchronous serial console port.
The lack of a similar facility in the SSH session channel has forced
users to continue the use of Telnet for the "Console Server"
function.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in This Document</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="#ref-2" title=""Key words for use in RFCs to Indicate Requirement Levels"">2</a>].
The "byte", "boolean", "uint32", and "string" data types are defined
in [<a href="#ref-3" title=""The Secure Shell (SSH) Protocol Architecture"">3</a>].
<span class="grey">Galbraith & Remaker Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4335">RFC 4335</a> SSH Break Extension January 2006</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The Break Request</span>
The following channel-specific request can be sent over a session
channel (as described in [<a href="#ref-4" title=""The Secure Shell (SSH) Transport Layer Protocol"">4</a>]) to request that the remote host perform
a BREAK operation.
byte SSH_MSG_CHANNEL_REQUEST
uint32 recipient channel
string "break"
boolean want_reply
uint32 break-length in milliseconds
If the BREAK length cannot be controlled by the application receiving
this request, the BREAK length parameter SHOULD be ignored and the
default BREAK signal length of the chipset or underlying chipset
driver SHOULD be sent.
If the application receiving this request can control the BREAK
length, the following suggestions are made regarding BREAK duration.
If a BREAK duration request of greater than 3000 ms is received, it
SHOULD be interpreted as a request for a 3000 ms BREAK. This
safeguard prevents an unreasonably long BREAK request from causing a
port to become unavailable for as long as 49.7 days while executing
the BREAK. Applications that require a longer BREAK may choose to
ignore this suggestion. If BREAK duration request of less than 500
ms is received, it SHOULD be interpreted as a 500 ms BREAK since most
devices will recognize a BREAK of that length. Applications that
require a shorter BREAK may choose to ignore this suggestion. If the
BREAK length parameter is 0, the BREAK SHOULD be interpreted as the
default BREAK signal length of the chipset or underlying chipset
driver. If no default exists, 500 ms can be used as the BREAK
length.
If the SSH connection does not terminate on a physical serial port,
the BREAK indication SHOULD be handled in a manner consistent with
the general use of BREAK as an attention/interrupt signal; for
instance, a service processor that requires an out-of-band facility
to get the attention of a system it manages.
In a case where an SSH connection cascades to another connection, the
BREAK SHOULD be passed along the cascaded connection. For example, a
Telnet session from an SSH shell should carry along an SSH-initiated
BREAK, and an SSH client initiated from a Telnet connection SHOULD
pass a BREAK indication from the Telnet connection.
<span class="grey">Galbraith & Remaker Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4335">RFC 4335</a> SSH Break Extension January 2006</span>
If the 'want_reply' boolean is set, the server MUST reply using an
SSH_MSG_CHANNEL_SUCCESS or SSH_MSG_CHANNEL_FAILURE [<a href="#ref-5" title=""The Secure Shell (SSH) Connection Protocol"">5</a>] message. If a
BREAK of any kind was preformed, SSH_MSG_CHANNEL_SUCCESS MUST be
sent. If no BREAK was preformed, SSH_MSG_CHANNEL_FAILURE MUST be
sent.
This operation SHOULD be supported by any general purpose SSH client.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
Many computer systems treat serial consoles as local and secured, and
interpret a BREAK signal as an instruction to halt execution of the
operating system or to enter privileged configuration modes. Because
of this, extra care should be taken to ensure that SSH access to
BREAK-enabled ports are limited to users with appropriate privileges
to execute such functions. Alternatively, support for the BREAK
facility MAY be implemented as configurable on a per-port or
per-server basis.
Implementations that literally interpret the BREAK length parameter
without imposing the suggested BREAK time limit may cause a denial of
service to or unexpected results from attached devices receiving the
very long BREAK signal.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
IANA has assigned the Connection Protocol Channel Request Name
"break" in accordance with [<a href="#ref-6" title=""The Secure Shell (SSH) Protocol Assigned Numbers"">6</a>].
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-1">1</a>] Postel, J. and J. Reynolds, "Telnet Protocol Specification",
STD 8, <a href="./rfc854">RFC 854</a>, May 1983.
[<a id="ref-2">2</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-3">3</a>] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) Protocol
Architecture", <a href="./rfc4251">RFC 4251</a>, January 2006.
[<a id="ref-4">4</a>] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH)
Transport Layer Protocol", <a href="./rfc4253">RFC 4253</a>, January 2006.
[<a id="ref-5">5</a>] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH)
Connection Protocol", <a href="./rfc4254">RFC 4254</a>, January 2006.
<span class="grey">Galbraith & Remaker Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4335">RFC 4335</a> SSH Break Extension January 2006</span>
[<a id="ref-6">6</a>] Lehtinen, S. and C. Lonvick, Ed., "The Secure Shell (SSH)
Protocol Assigned Numbers", <a href="./rfc4250">RFC 4250</a>, January 2006.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-7">7</a>] Harris, D., "Greater Scroll of Console Knowledge", March 2004,
<<a href="http://www.conserver.com/consoles/">http://www.conserver.com/consoles/</a>>.
Authors' Addresses
Joseph Galbraith
VanDyke Software
4848 Tramway Ridge Blvd
Suite 101
Albuquerque, NM 87111
US
Phone: +1 505 332 5700
EMail: galb-list@vandyke.com
Phillip Remaker
Cisco Systems, Inc
170 West Tasman Drive
San Jose, CA 95120
US
Phone: +1 408 526 8614
EMail: remaker@cisco.com
<span class="grey">Galbraith & Remaker Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4335">RFC 4335</a> SSH Break Extension January 2006</span>
Full Copyright Statement
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is provided by the IETF
Administrative Support Activity (IASA).
Galbraith & Remaker Standards Track [Page 6]
</pre>
|