telnet 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-telnet
핵심 정리
- Telnet 프로토콜로 원격 호스트에 로그인합니다.
tn,tn3270이라는 이름으로도 실행하며, 이스케이프 키가 각각 Ctrl+], Ctrl+T, Ctrl+C입니다. telnet 호스트 [포트]로 접속하면 입력 모드가 되고, 이스케이프 키를 누르면telnet>명령 모드로 갑니다. 명령 모드에서quit(끝),close,status,send,set,toggle,z(일시 중지)를 씁니다.telnet 호스트 포트는 특정 TCP 포트가 열려 있는지 확인할 때도 자주 씁니다(예:telnet 10.1.1.20 1521).- 단말 유형은 자동으로 협상하며
-e vt100이나 환경 변수EMULATE로 덮어씁니다. 3270 에뮬레이션은tn3270을 씁니다. - 비밀번호를 평문으로 보내므로 원격 로그인에는
ssh를 쓰는 것이 안전합니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 Trusted AIX의 로그인 보안 레이블(SL) 안내와 예 5, RBAC 안내가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 5, 6.1 Volume 5 |
| 파일 | /usr/bin/telnet, /usr/bin/tn, /usr/bin/tn3270, /etc/3270.keys, /etc/map3270, $HOME/.3270keys |
| 관련 명령어 | telnetd, ssh, rlogin, env, stty |
목적
Telnet 인터페이스로 로컬 호스트를 원격 호스트에 연결합니다.
영어 원문
Connects the local host with a remote host, using the Telnet interface.
구문
{ telnet | tn | tn3270 } [ -d ] [ -p ] [ -n TraceFile ] [ -e TerminalType ] [ -f | -F ] [ -k realm ]
[ -l user ] [ Host [ Port ] ]
설명
telnet 명령(tn, tn3270 명령이라고도 함)은 명령 모드와 입력 모드의 두 모드로 동작합니다.
Trusted AIX 시스템(6.1)
사용자에게는 기본 로그인 보안 레이블(SL)과 무결성 레이블(TL)이 정해지며, 로그인에 성공한 뒤 사용자 프로세스의 SL·TL이 됩니다. 기본 로그인 SL로 로그인하지 않으려면 로그인 때 -e 옵션으로 다른 SL을 줄 수 있습니다. 준 SL은 사용자의 허가 등급(clearance)이 지배하고 시스템 인가 범위 안에 있어야 합니다. TL은 로그인 때 지정할 수 없습니다. 기본 로그인 SL과 TL은 사용자 이름, 허가 등급과 함께 /etc/security/user에 정의됩니다. -e 옵션을 쓰려면 서버 쪽 커널의 신뢰 네트워크 비트가 꺼져 있어야 합니다.
제한: ID가 128 이하인 사용자는 원격 Trusted AIX 시스템에 로그인할 수 없습니다.
명령 모드
인수 없이 실행하면 telnet>, tn>, tn3270> 프롬프트가 나오는 명령 모드로 들어갑니다. 입력 모드에서 telnet은 Ctrl+], tn은 Ctrl+T, tn3270은 Ctrl+C를 눌러 명령 모드로 갈 수 있습니다. 명령 모드에서는 원격 시스템을 다루는 하위 명령을 입력합니다. 끝나면 원격 세션으로 돌아가는 하위 명령도 있고, 그렇지 않은 것은 Enter를 누르면 원격 세션으로 돌아갑니다.
참고: 기본 이스케이프 키는 환경 변수 TNESC로 바꿀 수 있습니다. 명령 모드에서는 백스페이스 같은 보통의 편집 규칙을 쓸 수 있습니다.
입력 모드
인수를 주어 실행하면 그 인수로 open 하위 명령을 실행한 뒤 입력 모드로 들어갑니다. 입력 모드는 원격 시스템이 지원하는 대로 한 글자씩(character-at-a-time) 또는 한 줄씩(line-by-line)입니다. 한 글자씩 모드에서는 입력한 글자 대부분을 바로 원격 호스트로 보내고, 한 줄씩 모드에서는 로컬에서 에코하고 완성된 줄을 보냅니다.
어느 모드든 toggle localchars가 참이면 사용자의 QUIT, INTR, FLUSH 문자를 로컬에서 잡아 Telnet 프로토콜 시퀀스로 원격 호스트에 보냅니다. toggle autoflush와 toggle autosynch는 원격 호스트가 그 시퀀스를 확인할 때까지 터미널로 가는 출력을 비우고, (QUIT·INTR이면) 앞의 터미널 입력도 비웁니다.
아랍어·히브리어 지원
telnet, tn, tn3270은 에뮬레이션 세션에서 아랍어와 히브리어를 입력할 수 있게 지원하며, Ar_AA 로캘에서 아랍 문자를 올바른 모양으로 보여 줍니다. 양방향 텍스트 기능과 키는 다음과 같습니다. 키는 AIX 단말(아랍어·히브리어 또는 Latin)에서 Alt+글자, ASCII 단말에서 Esc+글자이며, Latin AIX 단말에서는 둘 다 됩니다.
| 기능 | 글자 | 설명 |
|---|---|---|
| 언어 선택 | N, L | N은 아랍어·히브리어 언어 계층, L은 Latin 언어 계층으로 바꿉니다. |
| 화면 뒤집기(Screen Reverse) | S | 화면 방향을 뒤집고 새 방향의 기본 언어로 바꿉니다(오른쪽→왼쪽이면 아랍어·히브리어). 대칭 문자 바꾸기가 켜져 있으면 양방향 문자를 짝으로 바꾸고, 숫자 바꾸기가 켜져 있으면 힌디 숫자와 아라비아 숫자를 바꿉니다. |
| Push | P | 화면 방향과 반대 방향의 텍스트를 편집합니다. 커서 방향과 언어 계층이 바뀌고 Push 구간이 생깁니다. 처음에는 경계 모드(커서가 제자리에 있고 텍스트가 반대 방향으로 밀림)이고, 커서를 구간 안으로 옮기면 편집 모드가 됩니다. |
| End Push | E | Push를 끝냅니다. 커서가 Push 구간 끝으로 가고 원래 방향이 됩니다. 커서 위·아래 같은 필드 이동 키나 Enter 같은 AID 키로도 끝납니다. |
| 필드 뒤집기(Field Reverse) | R | 필드 방향을 화면 방향과 반대나 같게 바꿉니다. 텍스트는 뒤집지 않고 커서 방향과 언어 계층만 바꿉니다. |
| Autopush | A | 왼쪽→오른쪽과 오른쪽→왼쪽 텍스트를 섞어 입력할 때 입력한 글자에 따라 Push를 자동으로 시작하고 끝냅니다. |
| 필드 모양 만들기(Field Shape) | H | 현재 필드나 줄의 아랍 문자를 모양에 맞게 만듭니다. |
| 필드 모양 풀기(Field Deshape) | B | 현재 필드나 줄의 아랍 문자 모양을 풉니다. |
| 문맥 모양 결정 | C | 주변 텍스트로 아랍 문자의 모양을 정합니다(기본). 다른 모양 키를 누르면 끝납니다. |
| 처음·가운데·홀로·끝 모양 | I, M, O, Y | 아랍 문자를 각각 처음(initial), 가운데(middle), 홀로(isolated), 끝(final) 모양으로 만듭니다. |
그 밖의 설정:
export ARB_NUM_SWAP=1 # 숫자 바꾸기
export ARB_SYM_SWAP=1 # 괄호 같은 대칭 문자 바꾸기
export RM_HOST_LANG=IBM-420 # 호스트가 쓰는 코드 페이지
단말 유형 협상
telnet은 Telnet 프로토콜로 단말 유형을 협상하고, 협상한 값으로 TERM 환경 변수를 정합니다. 콘솔에서 협상을 덮어쓰려면 EMULATE 환경 변수나 -e 플래그를 쓰고, 3270 에뮬레이션이 필요하면 tn3270을 씁니다. 협상 여부는 다음 순서로 정합니다.
-e명령줄 플래그(협상 안 함)EMULATE환경 변수(협상 안 함)tn3270명령(협상 안 함)- 1~3이 없으면 자동으로 협상
클라이언트와 서버가 3270 데이터 스트림을 쓰기로 협상하면 키보드 대응은 다음 순서로 정합니다.
| 파일 | 설명 |
|---|---|
$HOME/.3270keys |
tn이나 telnet으로 실행했을 때의 사용자 3270 키보드 대응. 컬러 화면이면 3270 화면 색도 바꿀 수 있습니다. |
/etc/map3270 |
tn3270으로 실행했을 때의 3270 키보드 대응과 색 |
/etc/3270.keys |
기능이 제한된 단말용 기본 3270 키보드 대응 |
SAK(Secure Attention Key) 옵션
단말 협상 말고도 SAK 옵션을 협상할 수 있습니다. 지원되면 사용자 ID나 비밀번호를 바꾸는 작업을 위해 원격 호스트로 가는 안전한 통신 경로를 제공합니다. 원격 호스트가 SAK를 지원하면 send sak 하위 명령으로 원격에 신뢰 셸이 열립니다. set sak로 입력 모드의 키 하나에 SAK를 맡길 수도 있습니다.
줄 끝 규약
Telnet 프로토콜은 CR-LF를 "줄 끝"으로 정의합니다. 단말 입력에서는 사용자가 명령 완료 키나 줄 끝 키를 누른 것에 해당하며, ASCII 단말에서는 CR 키(Return, Enter라고도 표시)입니다. Telnet 서버가 원격 단말에서 CR-LF를 받으면 로컬 단말에서 줄 끝 키를 누른 것과 같습니다. ASCII 서버에서는 CR-LF와 CR-NUL이 같은 효과를 냅니다.
참고: Telnet 사용자는 CR-LF, CR-NULL, LF를 보낼 수 있어야 하고, ASCII 사용자는 CR-LF나 CR-NULL을 보낼 수 있어야 합니다. ASCII 호스트의 Telnet 사용자는 줄 끝 키를 누를 때 CR-LF와 CR-NULL 가운데 무엇을 보낼지 고를 수 있어야 하며 기본은 CR-LF입니다. 단말-컴퓨터 사이가 아닌 Telnet 데이터(서버가 보내는 출력, Telnet 위에서 도는 다른 응용 프로토콜)에는 CR-LF를 써야 합니다.
telnet은 사용자를 확인하려고 /usr/sbin/login을 exec로 실행합니다. 그래서 모든 사용자·장치 속성이 telnet 연결에도 적용되고, telnet 연결도 동시 로그인 세션 최대 수(maxlogins 속성)에 셉니다. 속성은 /etc/security/user와 /etc/security/login.cfg에 정의됩니다.
영어 원문
The telnet command, which is also referred to as the tn or tn3270 command, operates in two different modes: command mode and input mode.
System
The user is assigned a default login Sensitivity Label (SL) and Integrity Label (TL), which is SL and TL of the user's process after successful login.
If the user does not want to login using the default login SL, the user can choose to supply a different SL at the login time using the -e option. The SL that is supplied by the user must be dominated by the user's clearance and contained in the system accreditation range. The TL cannot be specified by the user at login time. The default login SL and TL are defined in the /etc/security/user file along with the username and clearance for each user. To use the -e option, the server side's kernel trusted network bit must be turned off.
Restriction: Any user with an ID less than or equal to 128 cannot login to remote Trusted AIX system.
Command Mode
When the telnet command is issued without arguments, it enters command mode, as indicated by the telnet>, tn>, or the tn3270> prompt. A user can also enter command mode from input mode by pressing Ctrl-] for the telnet command, Ctrl-T for the tn command, or Ctrl-C for the tn3270 command. In command mode, subcommands can be entered to manage the remote system. Some of these subcommands return you to the remote session upon completion. For those subcommands that do not, pressing the Enter key returns you to the remote session.
Note: The default escape sequence for this command is Ctrl-] for the telnet command, Ctrl-T for the tn command, or Ctrl-C for the tn3270 command. This default can be overridden by changing the TNESC environment variable.
To enter telnet command mode while connected to a remote host, type the Telnet escape key sequence. When in command mode, the standard operating system editing conventions, such as backspace, are available.
Input Mode
When the telnet command is issued with arguments, it performs an open subcommand with those arguments and then enters input mode. The type of input mode is either character-at-a-time or line-by-line, depending on what the remote system supports. In character-at-a-time mode, most text that is typed is immediately sent to the remote host for processing. In line-by-line mode, all text is echoed locally and completed lines are sent to the remote host.
In either input mode, if the toggle localchars subcommand has a value of True, the user's QUIT, INTR, and FLUSH characters are trapped locally and sent as Telnet Protocol sequences to the remote host. The toggle autoflush and toggle autosynch subcommands cause this action to flush subsequent output to the terminal until the remote host acknowledges the Telnet sequence and to flush previous terminal input (in the case of QUIT and INTR characters).
Arabic/Hebrew Support
The telnet, tn, and tn3270 command supports the Arabic and Hebrew texts, allowing the user to type Arabic or Hebrew characters while in an emulation session. The Ar_AA locale displays the Arabic characters in their correct shapes. The following functions support the bidirectional Arabic and Hebrew texts:
Language Selection
This function allows you to toggle the language layer. Activate the Arabic/Hebrew language selection with the following key combinations:
- Alt+N — From an AIX terminal
- Esc+N — From an ASCII terminal
- Alt+N or Esc+N — From a Latin AIX terminal
Activate the Latin language layer with the following key combinations:
- Alt+L — From an Arabic or Hebrew AIX terminal
- Esc+L — From an ASCII terminal
- Alt+L or Esc+L — From an AIX terminal
- Screen Reverse
This function reverses the screen image and invokes the default language of the new screen orientation. Thus, if the screen is reversed to right-to-left, the language is changed to Arabic/Hebrew. If the screen is reversed to left-to-right, the language is changed to Latin.
If symmetric character swapping is enabled, reversing the screen causes bidirectional characters to be replaced by their counterparts. For example, if numeric character swapping is enabled, reversing the screen causes Hindi numerals to be replaced by their Arabic counterparts and the Arabic numerals to be replaced by their Hindi counterparts.
Activate screen reverse with the following key combinations:
- Alt+S — From an Arabic or Hebrew AIX terminal
- Esc+S — From an ASCII terminal
- Alt+S or Esc+S — From a Latin AIX terminal
- Push/End Push
The Push function allows you to edit text whose direction is opposite the screen orientation. When you activate this function, the cursor orientation is reversed, the language layer is changed accordingly, and a Push segment is created.
The Push function has two secondary modes:
- Boundary Mode — This mode is activated upon entering the Push mode. In this mode, the cursor remains in its position while you type additional characters. The text is pushed in the opposite direction of the screen orientation.
- Edit Mode — This mode is activated when the cursor is moved from its boundary position into the Push segment area. In this mode, you can edit the text within the Push segment, while typing in the field's natural direction.
Activate this function with the following key combinations:
- Alt+P — From an Arabic or Hebrew AIX terminal
- Esc+P — From an ASCII terminal
- Alt+P or Esc+P — From a Latin AIX terminal
The End Push function terminates the Push function. The cursor jumps to the end of the Push segment and its direction changes to the original direction. You can activate End Push by pressing any field exit keys such as cursor up, cursor down, or any attention identifier (AID) key such as the Enter key. You can also activate this function with the following key combinations:
- Alt+E — From an Arabic or Hebrew AIX terminal
- Esc+E — From an ASCII terminal
- Alt+E or Esc+E — From a Latin AIX terminal
- Field Reverse
This function toggles the field orientation to either the opposite of or the same as the screen orientation. This function does not invert the text in the field. The cursor orientation is set to the new field orientation and the language layer is selected accordingly.
For example, if the cursor is in the first logical position of a field or line when you activate the field reverse function, the cursor skips to the opposite side of that field or line. This position is now the first logical position. If the cursor is not in the first position of the field or line when you activate field reverse function, the cursor remains in its position and allows natural and correct editing of the existing text. Activate this function with the following key combinations:
- Alt+R — From an Arabic or Hebrew AIX terminal
- Esc+R — From an ASCII terminal
- Alt+R or Esc+R — From a Latin AIX terminal
- Autopush
This function assists you in typing mixed left-to-right and right-to-left text. When enabled, reversed segments are automatically initiated and terminated according to the typed characters or the selected language layer. Thus, this mode automatically invokes the Push mode and relieves you of invoking the Push function.
When you type a digit or Latin character in a right-to-left field, the Autopush function automatically initiates the Push function without changing the language. If you type additional digits or Latin character, the Push function continues; otherwise, the Push function automatically terminates. Thus, you can type Arabic/Hebrew text with embedded digits or Latin characters without invoking the Push/End Push functions.
When you type an Arabic/Hebrew character in a left-to-right field, the Autopush function automatically initiates the Push function without a language change. If you then type a digit or Latin character, the Autopush function automatically terminates. Thus, you can type Latin text with embedded Arabic/Hebrew text using the Language Selection function rather than the Push/End Push functions.
Activate this function with the following key combinations:
- Alt+A — From an Arabic or Hebrew AIX terminal
- Esc+A — From an ASCII terminal
- Alt+A or Esc+A — From a Latin AIX terminal
- Field Shape
This function shapes the Arabic characters in the current field or line. Activate this function with the following key combinations:
- Alt+H — From an Arabic AIX terminal
- Esc+H — From an ASCII terminal
- Alt+H or Esc+H — From a Latin AIX terminal
- Field Deshape
This function deshapes Arabic text in the current field or line. Activate this function with the following key combinations:
- Alt+B — From an Arabic AIX terminal
- Esc+B — From an ASCII terminal
- Alt+B or Esc+B — From a Latin AIX terminal
- Contextual Shape Determination
This function determines the shape of an Arabic character based on the surrounding text. Use the Contextual Shape Determination function only when typing or editing right-to-left text. This function is terminated when any of the specific shape selection keys is pressed. This is the default function. Activate this function with the following key combinations:
- Alt+C — From an Arabic AIX terminal
- Esc+C — From an ASCII terminal
- Alt+C or Esc+C — From a Latin AIX terminal
- Initial Shape Determination
This function shapes Arabic characters in their initial shapes. Activate this function with the following key combinations:
- Alt+I — From an Arabic AIX terminal
- Esc+I — From an ASCII terminal
- Alt+I or Esc+I — From a Latin AIX terminal
- Middle Shape Determination
This function shapes Arabic characters in their middle shapes. Activate this function with the following key combinations:
- Alt+M — From an Arabic AIX terminal
- Esc+M — From an ASCII terminal
- Alt+M or Esc+M — From a Latin AIX terminal
- Isolated Shape Determination
This function shapes Arabic characters in their isolated shapes. Activate this function with the following key combinations:
- Alt+O — From an Arabic AIX terminal
- Esc+O — From an ASCII terminal
- Alt+O or Esc+O — From a Latin AIX terminal
- Final Shape Determination
This function shapes Arabic characters in their final shapes. Activate this function with the following key combinations:
- Alt+Y — From an Arabic AIX terminal
- Esc+Y — From an ASCII terminal
- Alt+Y or Esc+Y — From a AIX terminal
- Miscellaneous Functions
To activate numeric swapping, type the following line at the command line: export ARB_NUM_SWAP=1
To activate symmetric swapping, that is, to swap bidirectional characters such as braces, brackets, and so on, type the following line at the command line: export ARB_SYM_SWAP=1
To specify the code page that the host uses, type the following line at the command line: export RM_HOST_LANG=IBM-420
Terminal Type Negotiation
The telnet command negotiates the terminal type, using the Telnet protocol, and it sets the TERM environment variable according to what has been negotiated.
To override the terminal negotiation from the console, use the EMULATE environment variable or the -e flag; or invoke the tn3270 command if you require 3270 emulation. To determine whether terminal-type negotiation is performed, the following list describes the order of the telnet command processing:
The
-ecommand-line flag. (No negotiation.)The EMULATE environment variable. (No negotiation.)
The tn3270 command. (No negotiation.)
If steps 1, 2, and 3 are not present, terminal-type negotiation occurs automatically.
If the client and the server negotiate to use a 3270 data stream, the keyboard mapping is determined by the following precedence:
$HOME/.3270keys— Specifies the user's 3270 keyboard mapping when the tn or telnet command is invoked. If you are using a color display, you can also change this file to customize the colors for 3270 displays.- /etc/map3270 — Specifies the user's 3270 keyboard mapping when the tn3270 command is invoked. The /etc/map3270 file defines keyboard mapping and colors for the tn3270 command.
- /etc/3270.keys — Specifies the base 3270 keyboard mapping for use with limited function terminals.
- Secure Attention Key (SAK) Option
In addition to terminal negotiation, the telnet command allows negotiation for the Secure Attention Key (SAK) option. This option, when supported, provides the local user with a secure communication path to the remote host for tasks such as changing user IDs or passwords. If the remote host supports the SAK function, a trusted shell is opened on the remote host when the telnet send sak subcommand is issued. The SAK function can also be assigned to a single key available in telnet input mode, using the set sak subcommand.
End-of-Line Convention
The Telnet protocol defines the carriage-return line-feed (CR-LF) sequence to mean "end-of-line." For terminal input, this corresponds to a command-completion or end-of-line key being pressed on a user terminal. On an ASCII terminal, this is the CR key, but it may also be labeled "Return" or "Enter."
When a Telnet server receives the Telnet end-of-line sequence, CR-LF, as input from a remote terminal, the effect is the same as if the user had pressed the end-of-line key on a local terminal.
On ASCII servers, receiving the Telnet sequence CR-LF causes the same effect as a local user pressing the CR key on a local terminal. CR-LF and CR-NUL have the same effect on an ASCII server when received as input over a Telnet connection.
Note: A Telnet user must be able to send CR-LF, CR-NULL, or LF. An ASCII user must be able to send CR-LF or CR-NULL.
A Telnet user on an ASCII host should have a user-controllable mode to send either CR-LF or CR-NULL when the user presses the end-of-line key. The CR-LF should be the default. The Telnet end-of-line sequence, CR-LF, must be used to send Telnet data that is not terminal-to-computer. This occurs, for example, when a Telnet server sends output or when the Telnet protocol incorporates another application protocol.
The telnet command "execs" (using the exec command) the /usr/sbin/login command to validate a user. This 1) allows all user and device attributes to take effect on telnet connections and 2) causes telnet connections to count against the maximum number of login sessions allowable at a time (determined by the maxlogins attribute). Attributes are defined in the /etc/security/user and /etc/security/login.cfg files.
Restrictions
- 예전
telnet은 AIX 버전 4 이후의telnet과 HFT(고기능 단말)를 흉내 내는 이스케이프를 보내는 방식이 호환되지 않습니다. 지금 버전은 Esc 키를 누르면 이스케이프를 하나 보내지만 예전 버전은 둘을 보냈습니다. - ISO 8859 Latin 코드 페이지를 구현하려면
telnet이 바이너리 모드가 아닌 8비트 문자도 보낼 수 있어야 합니다. TCP/IP 명령의 국제화에 필요합니다. - 새 문자 집합을 지원하려고 terminfo 파일의
hft-m,ibm5081,hft,hft-nam,hft-c,aixterm-m,aixterm항목에box1,batt1,box2,batt2,font0,font1값이 더해졌습니다(값은 영어 원문 참고). rlogind와telnetd는 로컬 TTY의 회선 규칙을 POSIX 회선 규칙으로 바꿉니다. 로컬 TTY에서 POSIX 회선 규칙을 쓰지 않으면 다른 회선 규칙의 에코가 이상하게 동작할 수 있습니다. AIX TCP/IP가 제대로 동작하려면 POSIX 회선 규칙이 필요합니다.telnet에서는 마우스를 입력 장치로 쓸 수 없습니다.telnet은 APL 데이터 스트림을 지원하지 않습니다.
영어 원문
Earlier versions of the telnet command are not compatible with AIX Version 4 and later of the telnet command in sending escapes that emulate a high function terminal (HFT). The present version of the telnet command sends only one escape when the escape key is hit, while prior versions send two escape characters.
The telnet command must allow transmission of 8-bit characters that are not in binary mode to implement ISO 8859 Latin code page. This is necessary for internationalization of the TCP/IP commands.
In order to support new character sets, the following was added to the
hft-m,ibm5081,hft,hft-nam,hft-c,aixterm-m, andaixtermentries in the terminfo file:box1=\154\161\153\170\152\155\167\165\166\164\156, batt1=f1, box2=\154\161\153\170\152\155\167\165\166\164\156, batt2=f1md, font0=\E(B, font1=\E(0,The rlogind and telnetd daemons use POSIX line discipline to change the line discipline on the local TTY. If POSIX line discipline is not used on the local TTY, echoing other line disciplines may result in improper behavior. AIX TCP/IP must have POSIX line discipline to function properly.
The mouse cannot be used as an input device with the telnet command.
The telnet command does not support the APL data stream.
환경 변수
| 변수 | 설명 |
|---|---|
EMULATE |
-e처럼 단말 유형 협상을 덮어씁니다. vt100이면 DEC VT100, 3270이면 3270 단말을 흉내 냅니다. 정의하지 않았거나 none이면 보통대로 동작합니다. vt100이나 3270이면 원격 로그인의 TERM도 같은 값이어야 하며, 연결한 뒤 env로 확인합니다. |
TNESC |
기본(Ctrl+], Ctrl+T, Ctrl+C)이 아닌 이스케이프 문자. 쓸 문자의 8진수 값을 넣고 export합니다. 예를 들어 35는 Ctrl+]입니다. |
MAP3270 |
사용자 3270 키보드 대응을 담은 다른 파일의 전체 경로. 기본 /etc/map3270과 같은 형식으로 만듭니다. |
RM_HOST_LANG |
원격 3270 호스트가 쓰는 EBCDIC 코드 페이지. 영어가 아닌 3270 호스트에 연결하기 전에 정합니다(기본 영어). tn3270은 DBCS 단말 유형을 지원하지 않아 DBCS를 쓸 수 없습니다. 문자는 iconv로 변환하며, 변환 표는 genxlt로 바꿀 수 있습니다. |
영어 원문
The following environment variables can be used with the telnet command:
- EMULATE — Overrides terminal-type negotiation in the same way as the
-eflag. If the value of the EMULATE environment variable is defined as vt100 or 3270, the telnet command emulates a DEC VT100 terminal or 3270 terminal, respectively. If the EMULATE variable is not defined or has a value of none, the telnet command operates normally. If the EMULATE variable is set to vt100 or 3270, the TERM environment variable in the remote login connection should be set to the same value. You can check this by using the env command after the connection is open. - TNESC — Specifies an alternate TELNET escape character, other than the default, Ctrl-] for the telnet command, Ctrl-T for the tn command, or Ctrl-C for the tn3270 command. To change the telnet escape sequence, set TNESC to the octal value of the character you want to use. Then export TNESC. For example, set TNESC to 35 to change the TELNET escape sequence to Ctrl-].
- MAP3270 — Specifies an alternate file that contains the user's 3270 keyboard mapping. The MAP3270 variable must contain the full path name to the alternate file. Create the alternate file using the same format as the default /etc/map3270 file.
RM_HOST_LANG— Specifies the EBCDIC code page being used on the remote 3270 host. Set theRM_HOST_LANGenvironment variable to the correct code page before you telnet (using the telnet command) to a non-English-speaking 3270 host. The default is English. Refer to the Converters Overview for Programming in National Language Support Guide and Reference for possible code pages to use. Format theRM_HOST_LANGenvironment variable by specifying the desired code page. Restriction: The tn3270 command does not support DBCS, because terminal types for DBCS are not supported. The telnet command converts characters by using the iconv command. Users can change the default conversion tables by using the genxlt command.
플래그
| 플래그 | 설명 |
|---|---|
-d |
디버깅 모드를 켭니다. |
-e TerminalType |
단말 유형 협상을 덮어씁니다. vt100, 3270, none. |
-n TraceFile |
네트워크 추적 정보를 TraceFile에 기록합니다. |
-p |
현재 TTY 속성을 보존합니다. |
-f |
자격 증명을 전달합니다. 인증 방법이 Kerberos 5가 아니면 무시하며, 현재 DCE 자격 증명이 전달 가능으로 표시되어 있지 않으면 인증이 실패합니다. |
-F |
자격 증명을 전달하고, 원격 시스템의 자격 증명도 전달 가능으로 표시해 다른 원격 시스템으로 넘길 수 있게 합니다. 조건은 -f와 같습니다. |
-k realm |
원격의 영역(realm)이 로컬과 다를 때 지정합니다. 영역은 DCE 셀과 같습니다. Kerberos 5가 아니면 무시합니다. |
-l user |
원격에서 로그인할 사용자. Kerberos 5가 아니면 무시합니다. |
영어 원문
-d— Turns debugging mode on.-eTerminalType — Overrides terminal-type negotiation. Possible values are vt100, 3270, or none.-nTraceFile — Records network trace information in the file specified by the TraceFile variable.-p— Preserves current TTY attributes.-f— Causes the credentials to be forwarded. This flag will be ignored if Kerberos 5 is not the current authentication method. Authentication will fail if the current DCE credentials are not marked forwardable.-F— Causes the credentials to be forwarded. In addition, the credentials on the remote system will be marked forwardable (allowing them to be passed to another remote system). This flag will be ignored if Kerberos 5 is not the current authentication method. Authentication will fail if the current DCE credentials are not marked forwardable.-krealm — Allows the user to specify the realm of the remote station if it is different from the local systems realm. For these purposes, a realm is synonymous with a DCE cell. This flag will be ignored if Kerberos 5 is not the current authentication method.-luser — Specifies the remote user the telnet wants to login as. This option is ignored if Kerberos 5 is not the current authentication method.
하위 명령
하위 명령을 입력하기 전에 이스케이프 키를 누릅니다. 그래야 다음 입력을 텍스트가 아닌 명령으로 봅니다. 하위 명령과 display, emulate, mode, set, toggle의 인수는 다른 것과 구분될 만큼만 입력하면 됩니다(예: quit은 q).
| 하위 명령 | 설명 |
|---|---|
? [Subcommand] |
하위 명령 도움말. 인수가 없으면 요약을 보여 줍니다. |
close |
open으로 연결했으면 연결을 닫고 명령 모드로 돌아갑니다. 명령줄에 호스트를 주어 실행했으면 연결을 닫고 끝냅니다(quit과 같음). |
display [Argument] |
set과 toggle 값을 모두, 또는 Argument와 맞는 것만 보여 줍니다. |
emulate TerminalType |
단말 유형 협상을 덮어씁니다. ?(도움말), 3270, vt100, none. 원격 호스트의 출력은 모두 그 에뮬레이터가 처리하며, 에뮬레이션 모드에서는 표준 ASCII 문자만 쓸 수 있습니다. |
mode Type |
입력 모드. line은 한 줄씩, character는 한 글자씩. 원격 호스트에 허락을 받고, 지원하면 바뀝니다. |
open Host [Port] |
호스트(이름이나 점 10진수 주소)에 연결합니다. 포트가 없으면 기본 Telnet 포트를 씁니다. |
quit |
연결을 닫고 끝냅니다. 명령 모드에서 Ctrl+D도 같습니다. |
send Arguments |
특수 문자 시퀀스를 원격 호스트에 보냅니다(아래 표). 여러 개는 공백으로 나눕니다. |
set Variable Value |
Telnet 변수를 정합니다(아래 표). off는 그 기능을 끕니다. 현재 값은 display로 봅니다. |
status |
현재 모드와 연결된 원격 호스트 같은 상태를 보여 줍니다. |
toggle Arguments |
이벤트에 어떻게 반응할지 정하는 값을 참·거짓으로 바꿉니다(아래 표). |
z |
Telnet 프로세스를 일시 중지합니다(Ctrl+Z와 같음). csh·ksh의 fg로 돌아갑니다. |
send 인수:
| 인수 | 보내는 것 |
|---|---|
? |
send 도움말 |
ao |
AO(Abort Output). 원격 시스템이 로컬 단말로 보내는 출력을 모두 버리게 함 |
ayt |
AYT(Are You There). 원격 시스템이 응답할 수 있음 |
brk |
BRK(Break). 원격 시스템이 kill 동작을 함 |
ec |
EC(Erase Character). 마지막 입력 글자를 지움 |
el |
EL(Erase Line). 입력 중인 줄을 지움 |
escape |
현재 Telnet 이스케이프 문자 |
ga |
GA(Go Ahead). 원격 시스템이 제어를 사용자에게 돌려주라고 알릴 수단 |
ip |
IP(Interrupt Process). 원격에서 실행 중인 프로세스를 취소 |
nop |
NOP(No Operation) |
sak |
SAK. 원격 시스템이 신뢰 셸을 실행. 지원하지 않으면 Remote side does not support SAK. |
synch |
SYNC. 원격 시스템이 아직 읽지 않은 앞의 입력을 버리게 함. TCP 긴급 데이터로 보냄 |
set 변수:
| 변수 | 설명 |
|---|---|
echo |
입력 글자의 로컬 에코를 켜고 끕니다. 끄면 비밀번호처럼 화면에 보이면 안 되는 글자를 입력할 때 좋습니다. 한 줄씩 모드에서만 씁니다. |
eof |
한 줄씩 모드에서 줄의 첫 글자로 입력하면 원격으로 보내는 EOF 문자. 처음 값은 로컬 단말의 EOF 문자입니다. |
erase |
한 글자씩 모드에서 localchars가 참일 때 EC 시퀀스를 보내는 지우기 문자. 처음 값은 로컬 ERASE 문자입니다. |
escape |
명령 모드로 들어가는 이스케이프 문자. TNESC로 8진수로 줄 수도 있습니다. |
flushoutput |
localchars가 참일 때 AO 시퀀스를 보내는 문자. 처음 값은 Ctrl+O입니다. 원격이 AIX면 termio에 해당하는 것이 없어 localchars 모드에서만 동작합니다. |
interrupt |
localchars가 참일 때 IP 시퀀스를 보내는 문자. 처음 값은 로컬 INTR 문자입니다. |
kill |
한 글자씩 모드에서 localchars가 참일 때 EL 시퀀스를 보내는 문자. 처음 값은 로컬 KILL 문자입니다. |
quit |
localchars가 참일 때 BRK 시퀀스를 보내는 문자. 처음 값은 로컬 QUIT 문자입니다. |
sak |
원격 시스템에 신뢰 셸을 만들라고 요청하는 SAK 문자. 원격이 지원하지 않으면 효과가 없습니다. |
toggle 인수:
| 인수 | 설명 |
|---|---|
? |
쓸 수 있는 인수를 보여 줍니다. |
autoflush |
autoflush와 localchars가 참이고 AO, INTR, QUIT를 Telnet 시퀀스로 바꾸면, 원격 시스템이 처리했다고 확인(timing mark)할 때까지 단말에 데이터를 보여 주지 않습니다. 처음 값은 단말에 stty noflsh를 하지 않았으면 참입니다. |
autosynch |
autosynch와 localchars가 참이면 INTR이나 QUIT를 입력할 때 그 시퀀스 다음에 SYNC를 보내, 원격 호스트가 두 시퀀스를 처리할 때까지 앞의 입력을 버리게 합니다. 처음 값 거짓. |
crmod |
참이면 원격 호스트에서 받은 CR을 대부분 CR+LF로 바꿉니다. 원격이 LF 없이 CR만 보낼 때 쓸모 있습니다. 처음 값 거짓. |
debug |
소켓 수준 디버깅. 처음 값 거짓. |
localchars |
참이면 ERASE, FLUSH, INTERRUPT, KILL, QUIT 문자를 로컬에서 알아보고 각각 EC, AO, IP, EL, BRK 시퀀스로 바꿉니다. 거짓이면 글자 그대로 보냅니다. 처음 값은 한 줄씩 모드에서 참, 한 글자씩 모드에서 거짓입니다. |
netdata |
모든 네트워크 데이터를 16진수로 보여 줍니다. -n TraceFile이 없으면 표준 출력에 씁니다. 처음 값 거짓. |
options |
단말 협상이나 에코 같은 Telnet 프로토콜 내부 처리 옵션을 보여 줍니다. 처음 값 거짓. |
lineterm |
기본 줄 끝 문자를 CR-LF로 바꿉니다. 처음 값 거짓. |
인증
시스템이 Kerberos 5 인증으로 구성되어 있으면 telnet 클라이언트는 RFC 1416에 정의된 인증 협상을 시도합니다. 클라이언트와 서버가 인증 유형에 합의하면 접근할 계정을 포함한 인증 정보를 주고받으며, -l이 없으면 로컬 사용자입니다. 합의하지 못하거나 실패하면 (Standard AIX가 구성되어 있으면) 표준 연결로 계속합니다. 원격 호스트는 로컬 사용자에게 현재 DCE 자격 증명이 있고, 원격 시스템이 그 자격 증명을 원격 계정 접근에 충분하다고 받아들일 때만 접근을 허락합니다(kvalid_user 함수 참고).
영어 원문
Before entering each subcommand, press the escape key sequence. The escape sequence tells the program that non-text information follows. Otherwise, the program interprets subcommands as text.
For each of the subcommands in the following list, you only need to type enough letters to uniquely identify the subcommand. (For example, q is sufficient for the quit subcommand.) This is also true for the arguments to the display, emulate, mode, set, and toggle subcommands.
The telnet subcommands are:
- ? [Subcommand] — Requests help on telnet subcommands. Without arguments, the ? subcommand prints a help summary. If a Subcommand variable is specified, help information is displayed for that subcommand.
- close — Closes the TELNET connection and returns to telnet command mode when the open subcommand is used to establish the connection. When the telnet command is invoked and a host is specified, the close subcommand closes the TELNET connection and exits the telnet program (identical to the quit subcommand).
- display [Argument] — Displays all of the set and toggle values if no Argument variable is specified; otherwise, lists only those values that match the Argument variable.
- emulate TerminalType — Overrides terminal-type negotiation with the specified terminal type. Possible choices are: ? Prints help information. 3270 Emulates a 3270 terminal. none Specifies no emulation.
- vt100 — Emulates a DEC VT100 terminal.
All output received from the remote host is processed by the specified emulator. The initial terminal type to emulate can be specified through the EMULATE environment variable or the -e flag to the telnet command.
Restriction: Only standard ASCII characters are allowed in emulation mode.
- mode Type — Specifies the current input mode. When the Type variable has a value of line, the mode is line-by-line. When the Type variable has a value of character, the mode is character-at-a-time. Permission is requested from the remote host before entering the requested mode, and if the remote host supports it, the new mode is entered.
- open Host [Port] — Opens a connection to the specified host. The Host specification can be either a host name or an Internet address in dotted-decimal form. If no Port variable is specified, the telnet subcommand attempts to contact a TELNET server at the default port.
- quit — Closes a TELNET connection and exits the telnet program. A Ctrl-D in command mode also closes the connection and exits.
- send Arguments — Sends one or more arguments (special character sequences) to the remote host. Multiple arguments are separated by spaces. The following arguments can be used: ? Prints help information for the send subcommand. ao Sends the TELNET AO (Abort Output) sequence, which causes the remote host to flush all output from the remote system to the local terminal. ayt Sends the TELNET AYT (Are You There) sequence, to which the remote system can respond. brk Sends the TELNET BRK (Break) sequence, which causes the remote system to perform a kill operation. ec Sends the TELNET EC (Erase Character) sequence, which causes the remote host to erase the last character entered. el Sends the TELNET EL (Erase Line) sequence, which causes the remote system to erase the line currently being entered. escape Sends the current telnet escape character. The default escape sequence is Ctrl-] for the telnet command, Ctrl-T for the tn command, or Ctrl-C for the tn3270 command. ga Sends the TELNET GA (Go Ahead) sequence, which provides the remote system with a mechanism to signal the local system to return control to the user. ip Sends the TELNET IP (Interrupt Process) sequence, which causes the remote system to cancel the currently running process. nop Sends the TELNET NOP (No Operation) sequence. sak Sends the TELNET SAK (Secure Attention Key) sequence, which causes the remote system to invoke the trusted shell. If the SAK is not supported, then an error message is displayed that reads:
Remote side does not support SAK.synch Sends the TELNET SYNC sequence, which causes the remote system to discard all previously typed input that has not yet been read. This sequence is sent as TCP/IP urgent data. - set VariableValue — Sets the specified TELNET variable to the specified value. The special value off turns off the function associated with the variable entered. The display subcommand can be used to query the current setting of each variable. The variables that can be specified are: echo Toggles between local echo of entered characters and suppressing local echo. Local echo is used for normal processing, while suppressing the echo is convenient for entering text that should not be displayed on the screen, such as passwords. This variable can only be used in line-by-line mode. eof Defines the character for the telnet command. When the telnet command is in line-by-line mode, entering the eof character as the first character on a line sends the character to the remote host. The initial value for the eof character is the local terminal End-Of-File character. erase Defines the erase character for the telnet command. When the telnet command is in character-at-a-time mode and localchars has a value of true, typing the erase character sends the TELNET EC sequence to the remote host. The initial value for the erase character is the local terminal ERASE character. escape Specifies the telnet escape character, which puts the telnet command into command mode when connected to a remote host. This character can also be specified in octal in the TNESC environment variable. flushoutput Defines the flush character for the telnet command. When localchars has a value of true, typing the flushoutput character sends the TELNET AO sequence to the remote host. The initial value for the flush character is Ctrl-O. If the remote host is running AIX, the flushoutput variable, unlike the other special characters defined by the set subcommand, only works in localchars mode since it has no termio equivalent. interrupt Defines the interrupt character for the telnet command. When localchars has a value of true, typing the interrupt character sends the TELNET IP sequence to the remote host. The initial value for the interrupt character is the local terminal interrupt (INTR) character. kill Defines the kill character for the telnet command. When the telnet command is in character-at-a-time mode and localchars has a value of true, typing the kill character sends the TELNET EL sequence to the remote host. The initial value for the kill character is the local terminal KILL character. quit Defines the quit character for the telnet command. When localchars has a value of true, typing the quit character sends the TELNET BRK sequence to the remote host. The initial value for the quit character is the local terminal QUIT character. sak Defines the Secure Attention Key (SAK) for the telnet command. When the sak character is entered, the remote system is asked to create a trusted shell. If the remote host does not support the SAK, this sequence has no effect.
- status — Shows the status of the telnet command, including the current mode and the currently connected remote host.
- toggle Arguments — Toggles one or more arguments that control how the telnet command responds to events. Possible values are true and false. Multiple arguments are separated by spaces. The display subcommand can be used to query the current setting of each argument. The following arguments can be used: ? Displays valid arguments to toggle. autoflush If autoflush and localchars both have a value of true and the AO, INTR, and QUIT characters are recognized and transformed into TELNET sequences, the telnet command does not display any data on the user's terminal until the remote system acknowledges (with a TELNET timing mark option) that it has processed those TELNET sequences. The initial value of autoflush is true if the terminal has not done an stty noflsh, and false if it has. autosynch If autosynch and localchars are both true, then typing the INTR or QUIT character sends that character's TELNET sequence, followed by the TELNET SYNC sequence. This procedure causes the remote host to discard all previously typed input until both of the TELNET sequences have been read and acted upon. The initial value of this toggle is false. crmod Toggles carriage return mode. When set to true, most carriage return characters received from the remote host are mapped into a carriage return followed by a line feed. This mode does not affect the characters typed by the user, only those received from the remote host. This mode is useful when the remote host sends only a carriage return and not a line feed. The initial value of this toggle is false. debug Toggles debugging at the socket level. The initial value of this toggle is false. localchars Determines the handling of TELNET special characters. When this value is true, the ERASE, FLUSH, INTERRUPT, KILL, and QUIT characters are recognized locally and transformed into the appropriate TELNET control sequences (EC, AO, IP, BRK, and EL, respectively). When this value is false, these special characters are sent to the remote host as literal characters. The initial value of localchars is true in line-by-line mode and false in character-at-a-time mode. netdata Toggles the display of all network data (in hexadecimal format). The data is written to standard output unless a TraceFile value is specified with the
-nflag on the telnet command line. The initial value of this toggle is false. options Toggles the display of internal TELNET Protocol processing options, such as terminal negotiation and local or remote echo of characters. The initial value of this toggle is false, indicating that the current options should not be displayed. lineterm Toggles the default end-of-line terminator to CR-LF (ASCII carriage-return line-feed). A telnet client running on an ASCII host should have the user configurable option to send either the CR-NUL or CR-LF terminator when the user presses the end-of-line key. The initial value of this toggle is false. - z — Suspends the TELNET process. To return to the TELNET process, use the fg built-in command of the csh or ksh command. Note: The z subcommand has the same effect as a Ctrl-Z key sequence for any other process. It suspends Telnet execution and returns you to your original login shell.
- Authentication
If the system is configured for Kerberos 5 authentication, the telnet client will attempt authentication negotiation. The authentication negotiation used by telnet and the definitions of the options and suboptions for this are defined in rfc 1416.
If the client and server agree on an authentication type, they will exchange authentication information including the account the client wants to access. This will be the local user unless the -l flag is set.
If they cannot agree on the authentication information or if it fails, the telnet connection will continue with the standard connection (provided Standard AIX is configured).
The remote host allows access only if all of the following conditions are satisfied:
The local user has current DCE credentials.
The remote system accepts the DCE credentials as sufficient for access to the remote account. See the
kvalid_userfunction for additional information.
보안
RBAC 사용자와 Trusted AIX 사용자는 주의하세요. 이 명령은 특권 작업을 할 수 있으며, 특권 작업은 특권 사용자만 할 수 있습니다. 특권과 권한 목록은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다(6.1 문서에만 있음).
영어 원문
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
예제
아래 예에서 telnet 대신 tn을 쓰면 명령 모드 프롬프트가 tn>으로 나옵니다.
- 원격 호스트
host1에 로그인하며 단말 협상을 합니다.
telnet host1
- 단말 협상 없이 vt100으로
host1에 로그인합니다. 이 로그인 세션 동안EMULATE를 정하거나(첫 두 줄), 이 telnet 세션에만-e를 줍니다(셋째 줄).
EMULATE=vt100; export EMULATE
telnet host1
telnet -e vt100 host1
- 원격 호스트에 로그인한 뒤 telnet 상태를 봅니다. 로그인한 뒤 이스케이프 키로
telnet>프롬프트를 얻고status를 입력합니다. 끝나면 Enter로 원격 프롬프트로 돌아가고, 로그아웃하려면 Ctrl+D나exit를 씁니다.
telnet> status
Connected to host3.
Operating in character-at-a-time mode.
Escape character is '^]'.
tn3270으로 원격 호스트에 로그인합니다. 호스트 로그인 화면이 나오면 로그인 ID와 비밀번호를 입력합니다.
tn3270 hostname
- (6.1) 사용자
david가 특정 SLsec a b로 원격 호스트icehouse.austin.ibm.com에 연결합니다.telnet icehouse.austin.ibm.com을 실행하고,login에david -e "sec a b"를, 비밀번호 칸에 david의 비밀번호를 입력합니다. 연결을 끊으려면 이스케이프 키를 씁니다.
자주 쓰는 형태:
telnet 10.1.1.20 1521 # 포트가 열려 있는지 확인(연결되면 Ctrl+] 뒤 quit)
telnet mailhost 25 # SMTP 응답 확인
영어 원문
In the following examples, if you enter the tn command instead of the telnet command, the command mode prompt is displayed as tn>.
- To log in to the remote host
host1and perform terminal negotiation, enter:
telnet host1
- To log in to
host1as a vt100 terminal (no terminal type negotiation), choose one of the following methods: a. Use the following commands to set the EMULATE environment variable for this login session, then enter the telnet command:
EMULATE=vt100; export EMULATE
telnet host1
- Use the
-eflag to set the terminal type for this telnet session only:
telnet -e vt100 host1
- To log in to a remote host and then check the status of the telnet program, enter:
telnet host3
When the login prompt appears, enter your login ID and password. Press the Ctrl-T key sequence to receive the telnet> prompt. Enter the following at the telnet> prompt:
status
Information similar to the following is displayed on your screen:
Connected to host3.
Operating in character-at-a-time mode.
Escape character is ’^]’.
Upon completion of the status subcommand, press the Enter key to return to the remote prompt. Once you have completed your login, you can issue commands. To log out of the system and close the connection, press the Ctrl-D key sequence, or exit.
- To log in to a remote host using the tn3270 command, enter:
tn3270 hostname
The host login screen should be displayed. You can now enter your login ID and password. Once you have completed your login, you can issue commands. To log out of the system and close the connection, press Ctrl-D or exit.
- To connect to the icehouse.austin.ibm.com remote host with the telnet command with a user name
davidof specific SLssec a b, enter the following commands: a. In the command line, entertelnet icehouse.aoot.austin.ibm.comto connect to the icehouse.austin.ibm.com
- In the
loginfield, enterdavid -e "sec a b"c. In thepasswordsfield, enter david's passwords. To disconnect from the remote server, use the Ctrl-T key sequence.
파일
| 파일 | 설명 |
|---|---|
/etc/3270.keys |
기능이 제한된 단말용 기본 3270 키보드 대응 |
영어 원문
- /etc/3270.keys — Defines base 3270-keyboard mapping for use with limited function terminals.
Related information:
- env command
- Communications and networks
- Conversing with a remote user
- Authentication and the secure rcmds
리눅스(GNU)와 다른 점
리눅스에도 telnet 클라이언트가 있으며 명령 모드(Ctrl+]), open, close, quit, status, send, set, toggle의 쓰임이 같습니다. 원격 로그인에는 ssh를 쓰고, 포트 확인에는 nc -vz 호스트 포트나 bash의 /dev/tcp/호스트/포트를 많이 씁니다. 3270 에뮬레이션은 x3270·c3270(s3270 패키지)을 씁니다.