Internet Engineering Task Force (IETF) S. Tatham Request for Comments: 8160 PuTTY Category: Standards Track D. Tucker ISSN: 2070-1721 OpenSSH April 2017 Secure Shell (SSH) での IUTF8 端末モード 概要 この文書は, セキュアシェル端末モードエンコーディングに新しいオペコードを指定する. この新しいオペコードは, 端末 I/O が UTF-8 文字エンコーディングを利用することを示す 広く利用されている IUTF8 端末モードビッドを記述する. このメモの位置づけ これは, インターネット標準化課程文書だ. この文書は, Internet Engineering Task Force (IETF) の成果物だ. IETF コミュニティの合意を表わしている. 公開のレビューを受けており, Internet Engineering Steering Group (IESG) によって発行が認められた. インターネット標準についてさらなる情報は RFC 7841 の 2節にある. この文書の現在の状態についての情報, 訂正情報, フィードバックを提供する方法は, http://www.rfc-editor.org/info/rfc8160 で得られる. 著作権情報 Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Tatham & Tucker Standards Track [Page 1] RFC 8160 IUTF8 Terminal Mode in SSH April 2017 目次 1イントロダクション . . . . . . . . . . . . . . . . . . . . . . . . 2 2. この文書で用いる表記. . . . . . . . . . . . . 2 3. 端末モードエンコーディングのための新しい IUTF8 オペコード. . . . . . . . 2 4. IANA の考察 . . . . . . . . . . . . . . . . . . . . . 3 5. セキュリティの考察 . . . . . . . . . . . . . . . . . . . 3 6. リファレンス . . . . . . . . . . . . . . . . . . . . . . . . . 3 6.1. 標準のリファレンス . . . . . . . . . . . . . . . . . . 3 6.2. 情報のリファレンス . . . . . . . . . . . . . . . . . 3 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 4 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 4 1イントロダクション セキュアシェル (SSH) 接続プロトコル [RFC4254] は, "pty-req" チャンネル要求タイプの中で利用される端末モードのためにエンコーディングを提供する. 一般的に利用される端末モードに IUTF8 がある. これは, ターミナル I/O での UTF-8 文字エンコーディング [RFC3629] の利用を端末ドライバが仮定することを示す.A行の編集中に入力の何バイトが単一の論理文字として扱われるかをサーバ上のカーネルの端末ドライバが決定するのにこれは通常用いられる SSH は 現在 IUTF8 についてのエンコーディングを提供していない. この文書で, それを指定する. 2. この文書で用いる表記 この文書でのキーワード "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", "OPTIONAL" は, [RFC-2119] で記述されているように解釈される. 3. 端末モードエンコーディングのための新しい IUTF8 オペコード IUTF8 端末モードのために オペコードの値 42 が定義される. [RFC4254] の 8 節で指定されているように, 1〜159の範囲のすべてのオペコードは単一のuint32引数を持つ. したがって, IUTF8 オペコードの後に 1つの uint32 引数が続く. 値 0 は IUTF8 モードが無効なことを示し, 値 1 は有効なことを示す. 他のすべてのエンコードされた端末モードのように, クライアントがこの端末モードについて知っていれば, クライアントは端末モードに対する値を転送する必要がある. そして, サーバはそれを無視してもよい Tatham & Tucker Standards Track [Page 2] RFC 8160 IUTF8 Terminal Mode in SSH April 2017 4. IANA の考慮 この文書は, [RFC4254] の 8 節で定義された "疑似端末のエンコードされた端末モード" のリストに追加する. IANA は 次のオペコードを "Pseudo-Terminal Encoded Terminal Modes" レジストリに追加する: opcode mnemonic description ------ -------- ----------- 42 IUTF8 端末の入力と出力が UTF-8 でエンコードされているとみなす. 5. セキュリティの考察 [RFC4254] のセキュリティの考察が適用される.\この追加の端末モードエンコーディングは, エンコードされた端末モードの既存の集合と異なるセキュリティの意味は持たないと考えらえる. IUTF8 端末モードは, UTF-8 文字エンコーディングと組合せての利用が意図されているので, [RFC3629] のセキュリティの考察もこのモードをを有効にしているシステムに適用される. S特に, UTF8 対応の行編集の動作を可能とするためにこのビットを解釈する端末ドライバは, 不正なシーケンスや長すぎるエンコーディング, 組合せ文字の冗長な表現をこの動作がどのように扱うかを注意深く考慮しなければならない ([UNICODE] 参照). 6. References 6.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10.17487/RFC3629, November 2003, . [RFC4254] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) Connection Protocol", RFC 4254, DOI 10.17487/RFC4254, January 2006, . 6.2. Informative References [UNICODE] The Unicode Consortium, "The Unicode Standard", . Tatham & Tucker Standards Track [Page 3] RFC 8160 IUTF8 Terminal Mode in SSH April 2017 謝辞 The authors are indebted to Colin Watson for originally suggesting this terminal mode in 2005, and David Madore and Jakub Jelen for prior implementation efforts. Authors' Addresses Simon Tatham PuTTY Email: anakin@pobox.com Darren Tucker OpenSSH Email: dtucker@openssh.com Tatham & Tucker Standards Track [Page 4]