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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
|
'\" te
.\" Copyright 1989 AT&T
.\" Copyright (C) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright (c) 1983, 1990, 1993 The Regents of the University of California. All rights reserved.
.TH TELNET 1 "Aug 17, 2006"
.SH NAME
telnet \- user interface to a remote system using the TELNET protocol
.SH SYNOPSIS
.LP
.nf
\fBtelnet\fR [\fB-8EFKLacdfrx\fR] [\fB-X\fR \fIatype\fR] [\fB-e\fR \fIescape_char\fR]
[\fB-k\fR \fIrealm\fR] [\fB-l\fR \fIuser\fR] [\fB-n\fR \fIfile\fR]
[ [ [!] @hop1 [@hop2...] @] \fIhost\fR [\fIport\fR]]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBtelnet\fR utility communicates with another host using the \fBTELNET\fR
protocol. If \fBtelnet\fR is invoked without arguments, it enters command mode,
indicated by its prompt, \fBtelnet>\fR. In this mode, it accepts and executes
its associated commands. See \fBUSAGE\fR. If it is invoked with arguments, it
performs an \fBopen\fR command with those arguments.
.sp
.LP
If, for example, a \fIhost\fR is specified as \fI@hop1@hop2@host\fR, the
connection goes through hosts \fIhop1\fR and \fIhop2\fR, using loose source
routing to end at \fIhost\fR. If a leading \fB!\fR is used, the connection
follows strict source routing. Notice that when \fBtelnet\fR uses IPv6, it can
only use loose source routing, and the connection ignores the \fB!\fR.
.sp
.LP
Once a connection has been opened, \fBtelnet\fR enters input mode. In this
mode, text typed is sent to the remote host. The input mode entered will be
either "line mode", "character at a time", or "old line by line", depending
upon what the remote system supports.
.sp
.LP
In "line mode", character processing is done on the local system, under the
control of the remote system. When input editing or character echoing is to be
disabled, the remote system will relay that information. The remote system will
also relay changes to any special characters that happen on the remote system,
so that they can take effect on the local system.
.sp
.LP
In "character at a time" mode, most text typed is immediately sent to the
remote host for processing.
.sp
.LP
In "old line by line" mode, all text is echoed locally, and (normally) only
completed lines are sent to the remote host. The "local echo character"
(initially \fB^E\fR) may be used to turn off and on the local echo. (Use this
mostly to enter passwords without the password being echoed.).
.sp
.LP
If the "line mode" option is enabled, or if the \fBlocalchars\fR toggle is
\fBTRUE\fR (the default in "old line by line" mode), the user's \fBquit\fR,
\fBintr\fR, and \fBflush\fR characters are trapped locally, and sent as
\fBTELNET\fR protocol sequences to the remote side. If "line mode" has ever
been enabled, then the user's \fBsusp\fR and \fBeof\fR are also sent as
\fBTELNET\fR protocol sequences. \fBquit\fR is then sent as a \fBTELNET
ABORT\fR instead of \fBBREAK\fR. The options \fBtoggle\fR \fBautoflush\fR and
\fBtoggle\fR \fBautosynch\fR cause this action to flush subsequent output to
the terminal (until the remote host acknowledges the \fBTELNET\fR sequence);
and to flush previous terminal input, in the case of \fBquit\fR and \fBintr\fR.
.sp
.LP
While connected to a remote host, the user can enter \fBtelnet\fR command mode
by typing the \fBtelnet\fR escape character (initially \fB^]\fR). When in
command mode, the normal terminal editing conventions are available. Pressing
RETURN at the \fBtelnet\fR command prompt causes \fBtelnet\fR to exit command
mode.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-8\fR\fR
.ad
.sp .6
.RS 4n
Specifies an 8-bit data path. Negotiating the \fBTELNET BINARY\fR option is
attempted for both input and output.
.RE
.sp
.ne 2
.na
\fB\fB-a\fR\fR
.ad
.sp .6
.RS 4n
Attempts automatic login. This sends the user name by means of the \fBUSER\fR
variable of the \fBENVIRON\fR option, if supported by the remote system. The
name used is that of the current user as returned by \fBgetlogin\fR(3C) if it
agrees with the current user \fBID\fR. Otherwise, it is the name associated
with the user \fBID\fR.
.RE
.sp
.ne 2
.na
\fB\fB-c\fR\fR
.ad
.sp .6
.RS 4n
Disables the reading of the user's \fBtelnetrc\fR file. (See the \fBtoggle\fR
\fBskiprc\fR command on this reference page.)
.RE
.sp
.ne 2
.na
\fB\fB-d\fR\fR
.ad
.sp .6
.RS 4n
Sets the initial value of the \fBdebug\fR toggle to \fBTRUE\fR.
.RE
.sp
.ne 2
.na
\fB\fB-e\fR \fIescape_char\fR\fR
.ad
.sp .6
.RS 4n
Sets the initial escape character to \fIescape_char\fR. \fIescape_char\fR may
also be a two character sequence consisting of \fB^\fR (Control key) followed
by one character. If the second character is \fB?\fR, the \fBDEL\fR character
is selected. Otherwise, the second character is converted to a control
character and used as the escape character. If \fIescape_char\fR is defined as
the null string (that is, \fB-e\fR \fB\&''\fR), this is equivalent to
\fB-e\fR '\fB^@\fR' (Control-@). To specify that no character can be the escape
character, use the \fB-E\fR option.
.RE
.sp
.ne 2
.na
\fB\fB-E\fR\fR
.ad
.sp .6
.RS 4n
Stops any character from being recognized as an escape character.
.RE
.sp
.ne 2
.na
\fB\fB-f\fR\fR
.ad
.sp .6
.RS 4n
Forwards a copy of the local credentials to the remote system.
.RE
.sp
.ne 2
.na
\fB\fB-F\fR\fR
.ad
.sp .6
.RS 4n
Forwards a forwardable copy of the local credentials to the remote system.
.RE
.sp
.ne 2
.na
\fB\fB-k\fR \fIrealm\fR\fR
.ad
.sp .6
.RS 4n
If Kerberos authentication is being used, requests that \fBtelnet\fR obtain
tickets for the remote host in \fIrealm\fR instead of the remote host's default
realm as determined in \fBkrb5.conf\fR(4).
.RE
.sp
.ne 2
.na
\fB\fB-K\fR\fR
.ad
.sp .6
.RS 4n
Specifies no automatic login to the remote system.
.RE
.sp
.ne 2
.na
\fB\fB-l\fR \fIuser\fR\fR
.ad
.sp .6
.RS 4n
When connecting to a remote system that understands the \fBENVIRON\fR option,
then \fIuser\fR will be sent to the remote system as the value for the
\fBENVIRON\fR variable \fBUSER\fR.
.RE
.sp
.ne 2
.na
\fB\fB-L\fR\fR
.ad
.sp .6
.RS 4n
Specifies an 8-bit data path on output. This causes the \fBBINARY\fR option to
be negotiated on output.
.RE
.sp
.ne 2
.na
\fB\fB-n\fR \fItracefile\fR\fR
.ad
.sp .6
.RS 4n
Opens \fItracefile\fR for recording trace information. See the \fBset\fR
\fItracefile\fR command below.
.RE
.sp
.ne 2
.na
\fB\fB-r\fR\fR
.ad
.sp .6
.RS 4n
Specifies a user interface similar to \fBrlogin\fR. In this mode, the escape
character is set to the tilde (\fB~\fR) character, unless modified by the
\fB-e\fR option. The \fBrlogin\fR escape character is only recognized when it
is preceded by a carriage return. In this mode, the \fBtelnet\fR escape
character, normally '\fB^]\fR', must still precede a \fBtelnet\fR command. The
\fBrlogin\fR escape character can also be followed by '\fB\&.\er\fR'
or '\fB^Z\fR', and, like \fBrlogin\fR(1), closes or suspends the connection,
respectively. This option is an uncommitted interface and may change in the
future.
.RE
.sp
.ne 2
.na
\fB\fB-x\fR\fR
.ad
.sp .6
.RS 4n
Turns on encryption of the data stream. When this option is turned on,
\fBtelnet\fR will exit with an error if authentication cannot be negotiated or
if encryption cannot be turned on.
.RE
.sp
.ne 2
.na
\fB\fB-X\fR \fIatype\fR\fR
.ad
.sp .6
.RS 4n
Disables the \fIatype\fR type of authentication.
.RE
.SH USAGE
.SS "telnet Commands"
.sp
.LP
The commands described in this section are available with \fBtelnet\fR. It is
necessary to type only enough of each command to uniquely identify it. (This is
also true for arguments to the \fBmode\fR, \fBset\fR, \fBtoggle\fR,
\fBunset\fR, \fBenviron\fR, and \fBdisplay\fR commands.)
.sp
.ne 2
.na
\fB\fBauth\fR \fIargument\fR ...\fR
.ad
.sp .6
.RS 4n
The \fBauth\fR command manipulates the information sent through the
\fBTELNET\fR \fBAUTHENTICATE\fR option. Valid arguments for the \fBauth\fR
command are as follows:
.sp
.ne 2
.na
\fB\fBdisable\fR \fItype\fR\fR
.ad
.sp .6
.RS 4n
Disables the specified type of authentication. To obtain a list of available
types, use the \fBauth\fR \fBdisable ?\fR command.
.RE
.sp
.ne 2
.na
\fB\fBenable\fR \fItype\fR\fR
.ad
.sp .6
.RS 4n
Enables the specified type of authentication. To obtain a list of available
types, use the \fBauth\fR \fBenable ?\fR command.
.RE
.sp
.ne 2
.na
\fB\fBstatus\fR\fR
.ad
.sp .6
.RS 4n
Lists the current status of the various types of authentication.
.RE
.RE
.sp
.ne 2
.na
\fB\fBopen\fR [\fB\fR\fB-l\fR \fIuser\fR ] [ [!] @\fIhop1\fR
[@\fIhop2\fR ...]@\fIhost\fR [ \fIport\fR ]\fR
.ad
.sp .6
.RS 4n
Open a connection to the named host. If no port number is specified,
\fBtelnet\fR will attempt to contact a \fBTELNET\fR server at the default port.
The host specification may be either a host name (see \fBhosts\fR(4)) or an
Internet address specified in the "dot notation" (see \fBinet\fR(7P) or
\fBinet6\fR(7P)). If the \fIhost\fR is specified as \fI@hop1@hop2@host\fR, the
connection goes through hosts \fIhop1\fR and \fIhop2\fR, using loose source
routing to end at \fIhost\fR. The \fB@\fR symbol is required as a separator
between the hosts specified. If a leading \fB!\fR is used with IPv4, the
connection follows strict source routing.
.sp
The \fB-l\fR option passes the \fIuser\fR as the value of the \fBENVIRON\fR
variable \fBUSER\fR to the remote system.
.RE
.sp
.ne 2
.na
\fB\fBclose\fR\fR
.ad
.sp .6
.RS 4n
Close any open \fBTELNET\fR session and exit \fBtelnet\fR. An \fBEOF\fR (in
command mode) will also close a session and exit.
.RE
.sp
.ne 2
.na
\fB\fBencrypt\fR\fR
.ad
.sp .6
.RS 4n
The encrypt command manipulates the information sent through the \fBTELNET\fR
\fBENCRYPT\fR option.
.sp
Valid arguments for the encrypt command are as follows:
.sp
.ne 2
.na
\fB\fBdisable\fR \fItype\fR [\fBinput\fR|\fBoutput\fR]\fR
.ad
.sp .6
.RS 4n
Disables the specified type of encryption. If you omit the input and output,
both input and output are disabled. To obtain a list of available types, use
the \fBencrypt\fR \fBdisable ?\fR command.
.RE
.sp
.ne 2
.na
\fB\fBenable\fR \fItype\fR [\fBinput\fR|\fBoutput\fR]\fR
.ad
.sp .6
.RS 4n
Enables the specified type of encryption. If you omit input and output, both
input and output are enabled. To obtain a list of available types, use the
\fBencrypt\fR \fBenable ?\fR command.
.RE
.sp
.ne 2
.na
\fB\fBinput\fR\fR
.ad
.sp .6
.RS 4n
This is the same as the \fBencrypt\fR \fBstart input\fR command.
.RE
.sp
.ne 2
.na
\fB\fB-input\fR\fR
.ad
.sp .6
.RS 4n
This is the same as the \fBencrypt\fR \fBstop input\fR command.
.RE
.sp
.ne 2
.na
\fB\fBoutput\fR\fR
.ad
.sp .6
.RS 4n
This is the same as the \fBencrypt\fR \fBstart output\fR command.
.RE
.sp
.ne 2
.na
\fB\fB-output\fR\fR
.ad
.sp .6
.RS 4n
This is the same as the \fBencrypt\fR \fBstop output\fR command.
.RE
.sp
.ne 2
.na
\fB\fBstart\fR [\fBinput\fR|\fBoutput\fR]\fR
.ad
.sp .6
.RS 4n
Attempts to start encryption. If you omit input and output, both input and
output are enabled. To obtain a list of available types, use the \fBencrypt\fR
\fBenable ?\fR command.
.RE
.sp
.ne 2
.na
\fB\fBstatus\fR\fR
.ad
.sp .6
.RS 4n
Lists the current status of encryption.
.RE
.sp
.ne 2
.na
\fB\fBstop\fR [\fBinput\fR|\fBoutput\fR]\fR
.ad
.sp .6
.RS 4n
Stops encryption. If you omit input and output, encryption is on both input and
output.
.RE
.sp
.ne 2
.na
\fB\fBtype\fR \fItype\fR\fR
.ad
.sp .6
.RS 4n
Sets the default type of encryption to be used with later \fBencrypt\fR
\fBstart\fR or \fBencrypt\fR \fBstop\fR commands.
.RE
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.sp .6
.RS 4n
Same as \fBclose\fR.
.RE
.sp
.ne 2
.na
\fB\fBz\fR\fR
.ad
.sp .6
.RS 4n
Suspend \fBtelnet\fR. This command only works when the user is using a shell
that supports job control, such as \fBsh\fR(1).
.RE
.sp
.ne 2
.na
\fB\fBmode\fR \fItype\fR\fR
.ad
.sp .6
.RS 4n
The remote host is asked for permission to go into the requested mode. If the
remote host is capable of entering that mode, the requested mode will be
entered. The argument \fItype\fR is one of the following:
.sp
.ne 2
.na
\fB\fBcharacter\fR\fR
.ad
.sp .6
.RS 4n
Disable the \fBTELNET LINEMODE\fR option, or, if the remote side does not
understand the \fBLINEMODE\fR option, then enter "character at a time" mode.
.RE
.sp
.ne 2
.na
\fB\fBline\fR\fR
.ad
.sp .6
.RS 4n
Enable the \fBTELNET LINEMODE\fR option, or, if the remote side does not
understand the \fBLINEMODE\fR option, then attempt to enter "old-line-by-line"
mode.
.RE
.sp
.ne 2
.na
\fB\fBisig\fR (\fB-isig\fR)\fR
.ad
.sp .6
.RS 4n
Attempt to enable (disable) the \fBTRAPSIG\fR mode of the \fBLINEMODE\fR
option. This requires that the \fBLINEMODE\fR option be enabled.
.RE
.sp
.ne 2
.na
\fB\fBedit\fR (\fB-edit\fR)\fR
.ad
.sp .6
.RS 4n
Attempt to enable (disable) the \fBEDIT\fR mode of the \fBLINEMODE\fR option.
This requires that the \fBLINEMODE\fR option be enabled.
.RE
.sp
.ne 2
.na
\fB\fBsofttabs\fR (\fB-softtabs\fR)\fR
.ad
.sp .6
.RS 4n
Attempt to enable (disable) the \fBSOFT_TAB\fR mode of the \fBLINEMODE\fR
option. This requires that the \fBLINEMODE\fR option be enabled.
.RE
.sp
.ne 2
.na
\fB\fBlitecho\fR (\fB-litecho\fR)\fR
.ad
.sp .6
.RS 4n
Attempt to enable (disable) the \fBLIT_ECHO\fR mode of the \fBLINEMODE\fR
option. This requires that the \fBLINEMODE\fR option be enabled.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
Prints out help information for the \fBmode\fR command.
.RE
.RE
.sp
.ne 2
.na
\fB\fBstatus\fR\fR
.ad
.sp .6
.RS 4n
Show the current status of \fBtelnet\fR. This includes the peer one is
connected to, as well as the current mode.
.RE
.sp
.ne 2
.na
\fB\fBdisplay\fR\fR
.ad
.sp .6
.RS 4n
[\fIargument\fR\|.\|.\|.\|] Display all, or some, of the \fBset\fR and
\fBtoggle\fR values (see \fBtoggle\fR \fIargument\fR.\|.\|.).
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
[\fIcommand\fR] Get help. With no arguments, \fBtelnet\fR prints a help
summary. If a command is specified, \fBtelnet\fR will print the help
information for just that command.
.RE
.sp
.ne 2
.na
\fB\fBsend\fR \fIargument\fR\fB\|.\|.\|.\fR\fR
.ad
.sp .6
.RS 4n
Send one or more special character sequences to the remote host. The following
are the arguments that can be specified (more than one argument may be
specified at a time):
.sp
.ne 2
.na
\fB\fBescape\fR\fR
.ad
.sp .6
.RS 4n
Send the current \fBtelnet\fR escape character (initially \fB^]\fR).
.RE
.sp
.ne 2
.na
\fB\fBsynch\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET SYNCH\fR sequence. This sequence discards all previously
typed, but not yet read, input on the remote system. This sequence is sent as
\fBTCP\fR urgent data and may not work if the remote system is a 4.2 \fBBSD\fR
system. If it does not work, a lowercase "r" may be echoed on the terminal.
.RE
.sp
.ne 2
.na
\fB\fBbrk\fR or \fBbreak\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET BRK\fR (Break) sequence, which may have significance to the
remote system.
.RE
.sp
.ne 2
.na
\fB\fBip\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET IP\fR (Interrupt Process) sequence, which aborts the
currently running process on the remote system.
.RE
.sp
.ne 2
.na
\fB\fBabort\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET ABORT\fR (Abort Process) sequence.
.RE
.sp
.ne 2
.na
\fB\fBao\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET AO\fR (Abort Output) sequence, which flushes all output from
the remote system to the user's terminal.
.RE
.sp
.ne 2
.na
\fB\fBayt\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET AYT\fR (Are You There) sequence, to which the remote system
may or may not respond.
.RE
.sp
.ne 2
.na
\fB\fBec\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET EC\fR (Erase Character) sequence, which erases the last
character entered.
.RE
.sp
.ne 2
.na
\fB\fBel\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET EL\fR (Erase Line) sequence, which should cause the remote
system to erase the line currently being entered.
.RE
.sp
.ne 2
.na
\fB\fBeof\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET EOF\fR (End Of File) sequence.
.RE
.sp
.ne 2
.na
\fB\fBeor\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET EOR\fR (End Of Record) sequence.
.RE
.sp
.ne 2
.na
\fB\fBga\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET GA\fR (Go Ahead) sequence, which probably has no
significance for the remote system.
.RE
.sp
.ne 2
.na
\fB\fBgetstatus\fR\fR
.ad
.sp .6
.RS 4n
If the remote side supports the \fBTELNET STATUS\fR command, \fBgetstatus\fR
will send the subnegotiation to request that the server send its current option
status.
.RE
.sp
.ne 2
.na
\fB\fBnop\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET NOP\fR (No Operation) sequence.
.RE
.sp
.ne 2
.na
\fB\fBsusp\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET SUSP\fR (Suspend Process) sequence.
.RE
.sp
.ne 2
.na
\fB\fBdo\fR \fIoption\fR\fR
.ad
.br
.na
\fB\fBdont\fR \fIoption\fR\fR
.ad
.br
.na
\fB\fBwill\fR \fIoption\fR\fR
.ad
.br
.na
\fB\fBwont\fR \fIoption\fR\fR
.ad
.sp .6
.RS 4n
Send the \fBTELNET\fR protocol option negotiation indicated. Option may be the
text name of the protocol option, or the number corresponding to the option.
The command will be silently ignored if the option negotiation indicated is not
valid in the current state. If the \fIoption\fR is given as \fBhelp\fR or
\fB?\fR, the list of option names known is listed. This command is mostly
useful for unusual debugging situations.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
Print out help information for the \fBsend\fR command.
.RE
.RE
.sp
.ne 2
.na
\fB\fBset\fR \fIargument\fR [\fIvalue\fR]\fR
.ad
.br
.na
\fB\fBunset\fR \fIargument\fR\fR
.ad
.sp .6
.RS 4n
Set any one of a number of \fBtelnet\fR variables to a specific value. The
special value \fBoff\fR turns off the function associated with the variable.
The values of variables may be interrogated with the \fBdisplay\fR command. If
\fIvalue\fR is omitted, the value is taken to be true, or "on". If the
\fBunset\fR form is used, the value is taken to be false, or \fBoff\fR. The
variables that may be specified are:
.sp
.ne 2
.na
\fB\fBecho\fR\fR
.ad
.sp .6
.RS 4n
This is the value (initially \fB^E\fR) that, when in "line by line" mode,
toggles between local echoing of entered characters for normal processing, and
suppressing echoing of entered characters, for example, entering a password.
.RE
.sp
.ne 2
.na
\fB\fBescape\fR\fR
.ad
.sp .6
.RS 4n
This is the \fBtelnet\fR escape character (initially \fB^]\fR) that enters
\fBtelnet\fR command mode when connected to a remote system.
.RE
.sp
.ne 2
.na
\fB\fBinterrupt\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode (see \fBtoggle\fR,
\fBlocalchars\fR) and the \fBinterrupt\fR character is typed, a \fBTELNET IP\fR
sequence (see \fBsend\fR and \fBip\fR) is sent to the remote host. The initial
value for the interrupt character is taken to be the terminal's \fBintr\fR
character.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode and the \fBquit\fR character is
typed, a \fBTELNET BRK\fR sequence (see \fBsend\fR, \fBbrk\fR) is sent to the
remote host. The initial value for the quit character is taken to be the
terminal's \fBquit\fR character.
.RE
.sp
.ne 2
.na
\fB\fBflushoutput\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode and the \fBflushoutput\fR character
is typed, a \fBTELNET AO\fR sequence (see \fBsend\fR, \fBao\fR) is sent to the
remote host. The initial value for the flush character is taken to be the
terminal's \fBflush\fR character.
.RE
.sp
.ne 2
.na
\fB\fBerase\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode \fIand\fR operating in "character
at a time" mode, then when the \fBerase\fR character is typed, a \fBTELNET
EC\fR sequence (see \fBsend\fR, \fBec\fR) is sent to the remote system. The
initial value for the \fBerase\fR character is taken to be the terminal's
\fBerase\fR character.
.RE
.sp
.ne 2
.na
\fB\fBkill\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode \fIand\fR operating in "character
at a time" mode, then when the \fBkill\fR character is typed, a \fBTELNET EL\fR
sequence (see \fBsend\fR, \fBel\fR) is sent to the remote system. The initial
value for the \fBkill\fR character is taken to be the terminal's \fBkill\fR
character.
.RE
.sp
.ne 2
.na
\fB\fBeof\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is operating in "line by line"/ mode, entering the \fBeof\fR
character as the first character on a line sends this character to the remote
system. The initial value of \fBeof\fR is taken to be the terminal's \fBeof\fR
character.
.RE
.sp
.ne 2
.na
\fB\fBayt\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode, or \fBLINEMODE\fR is enabled, and
the status character is typed, a \fBTELNET AYT\fR ("Are You There") sequence is
sent to the remote host. (See \fBsend\fR, \fBayt\fR above.) The initial value
for \fBayt\fR is the terminal's status character.
.RE
.sp
.ne 2
.na
\fB\fBforw1\fR\fR
.ad
.br
.na
\fB\fBforw2\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is operating in \fBLINEMODE,\fR and the \fBforw1\fR or
\fBforw2\fR characters are typed, this causes the forwarding of partial lines
to the remote system. The initial values for the forwarding characters come
from the terminal's \fBeol\fR and \fBeol2\fR characters.
.RE
.sp
.ne 2
.na
\fB\fBlnext\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is operating in \fBLINEMODE\fR or "old line by line" mode, then
the \fBlnext\fR character is assumed to be the terminal's \fBlnext\fR
character. The initial value for the \fBlnext\fR character is taken to be the
terminal's \fBlnext\fR character.
.RE
.sp
.ne 2
.na
\fB\fBreprint\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is operating in \fBLINEMODE\fR or "old line by line" mode, then
the \fBreprint\fR character is assumed to be the terminal's \fBreprint\fR
character. The initial value for \fBreprint\fR is taken to be the terminal's
\fBreprint\fR character.
.RE
.sp
.ne 2
.na
\fB\fBrlogin\fR\fR
.ad
.sp .6
.RS 4n
This is the \fBrlogin\fR escape character. If set, the normal \fBtelnet\fR
escape character is ignored, unless it is preceded by this character at the
beginning of a line. The \fBrlogin\fR character, at the beginning of a line
followed by a "\fB\&.\fR" closes the connection. When followed by a \fB^Z\fR,
the \fBrlogin\fR command suspends the \fBtelnet\fR command. The initial state
is to disable the \fBrlogin\fR escape character.
.RE
.sp
.ne 2
.na
\fB\fBstart\fR\fR
.ad
.sp .6
.RS 4n
If the \fBTELNET TOGGLE-FLOW-CONTROL\fR option has been enabled, then the
\fBstart\fR character is taken to be the terminal's \fBstart\fR character. The
initial value for the \fBkill\fR character is taken to be the terminal's
\fBstart\fR character.
.RE
.sp
.ne 2
.na
\fB\fBstop\fR\fR
.ad
.sp .6
.RS 4n
If the \fBTELNET TOGGLE-FLOW-CONTROL\fR option has been enabled, then the
\fBstop\fR character is taken to be the terminal's \fBstop\fR character. The
initial value for the \fBkill\fR character is taken to be the terminal's
\fBstop\fR character.
.RE
.sp
.ne 2
.na
\fB\fBsusp\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is in \fBlocalchars\fR mode, or \fBLINEMODE\fR is enabled, and
the \fBsuspend\fR character is typed, a \fBTELNET SUSP\fR sequence (see
\fBsend\fR, \fBsusp\fR above) is sent to the remote host. The initial value for
the \fBsuspend\fR character is taken to be the terminal's \fBsuspend\fR
character.
.RE
.sp
.ne 2
.na
\fB\fBtracefile\fR\fR
.ad
.sp .6
.RS 4n
This is the file to which the output, generated when the \fBnetdata\fR or the
\fBdebug\fR option is \fBTRUE\fR, will be written. If \fBtracefile\fR is set to
"\fB-\fR", then tracing information will be written to standard output (the
default).
.RE
.sp
.ne 2
.na
\fB\fBworderase\fR\fR
.ad
.sp .6
.RS 4n
If \fBtelnet\fR is operating in \fBLINEMODE\fR or "old line by line" mode, then
this character is taken to be the terminal's \fBworderase\fR character. The
initial value for the \fBworderase\fR character is taken to be the terminal's
\fBworderase\fR character.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
Displays the legal \fBset\fR and \fBunset\fR commands.
.RE
.RE
.sp
.ne 2
.na
\fB\fBslc\fR \fIstate\fR\fR
.ad
.sp .6
.RS 4n
The \fBslc\fR (Set Local Characters) command is used to set or change the state
of special characters when the \fBTELNET LINEMODE\fR option has been enabled.
Special characters are characters that get mapped to \fBTELNET\fR commands
sequences (like \fBip\fR or \fBquit\fR) or line editing characters (like
\fBerase\fR and \fBkill\fR). By default, the local special characters are
exported. The following values for \fIstate\fR are valid:
.sp
.ne 2
.na
\fB\fBcheck\fR\fR
.ad
.sp .6
.RS 4n
Verifies the settings for the current special characters. The remote side is
requested to send all the current special character settings. If there are any
discrepancies with the local side, the local settings will switch to the remote
values.
.RE
.sp
.ne 2
.na
\fB\fBexport\fR\fR
.ad
.sp .6
.RS 4n
Switches to the local defaults for the special characters. The local default
characters are those of the local terminal at the time when \fBtelnet\fR was
started.
.RE
.sp
.ne 2
.na
\fB\fBimport\fR\fR
.ad
.sp .6
.RS 4n
Switches to the remote defaults for the special characters. The remote default
characters are those of the remote system at the time when the \fBTELNET\fR
connection was established.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
Prints out help information for the \fBslc\fR command.
.RE
.RE
.sp
.ne 2
.na
\fB\fBtoggle\fR \fIargument\fR...\fR
.ad
.sp .6
.RS 4n
Toggle between \fBTRUE\fR and \fBFALSE\fR the various flags that control how
\fBtelnet\fR responds to events. More than one argument may be specified. The
state of these flags may be interrogated with the \fBdisplay\fR command. Valid
arguments are:
.sp
.ne 2
.na
\fB\fBauthdebug\fR\fR
.ad
.RS 20n
Turns on debugging information for the authentication code.
.RE
.sp
.ne 2
.na
\fB\fBautodecrypt\fR\fR
.ad
.RS 20n
When the \fBTELNET\fR \fBENCRYPT\fR option is negotiated, by default the actual
encryption (decryption) of the data stream does not start automatically. The
autoencrypt (autodecrypt) command states that encryption of the output (input)
stream should be enabled as soon as possible.
.RE
.sp
.ne 2
.na
\fB\fBautologin\fR\fR
.ad
.RS 20n
If the remote side supports the \fBTELNET\fR \fBAUTHENTICATION\fR option,
\fBtelnet\fR attempts to use it to perform automatic authentication. If the
\fBAUTHENTICATION\fR option is not supported, the user's login name is
propagated through the \fBTELNET\fR \fBENVIRON\fR option. This command is the
same as specifying the \fB-a\fR option on the \fBopen\fR command.
.RE
.sp
.ne 2
.na
\fB\fBautoflush\fR\fR
.ad
.RS 20n
If \fBautoflush\fR and \fBlocalchars\fR are both \fBTRUE,\fR then when the
\fBao\fR, \fBintr\fR, or \fBquit\fR characters are recognized (and transformed
into \fBTELNET\fR sequences; see \fBset\fR for details), \fBtelnet\fR refuses
to display any data on the user's terminal until the remote system acknowledges
(using a \fBTELNET\fR Timing Mark option) that it has processed those
\fBTELNET\fR sequences. The initial value for this toggle is \fBTRUE\fR if the
terminal user has not done an "stty noflsh". Otherwise, the value is
\fBFALSE\fR (see \fBstty\fR(1)).
.RE
.sp
.ne 2
.na
\fB\fBautosynch\fR\fR
.ad
.RS 20n
If \fBautosynch\fR and \fBlocalchars\fR are both \fBTRUE\fR, then when either
the \fBinterrupt\fR or \fBquit\fR characters are typed (see \fBset\fR for
descriptions of \fBinterrupt\fR and \fBquit\fR), the resulting \fBTELNET\fR
sequence sent is followed by the \fBTELNET SYNCH\fR sequence. This procedure
\fIshould\fR cause the remote system to begin throwing away all previously
typed input until both of the \fBTELNET\fR sequences have been read and acted
upon. The initial value of this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBbinary\fR\fR
.ad
.RS 20n
Enable or disable the \fBTELNET BINARY\fR option on both input and output.
.RE
.sp
.ne 2
.na
\fB\fBinbinary\fR\fR
.ad
.RS 20n
Enable or disable the \fBTELNET BINARY\fR option on input.
.RE
.sp
.ne 2
.na
\fB\fBoutbinary\fR\fR
.ad
.RS 20n
Enable or disable the \fBTELNET BINARY\fR option on output.
.RE
.sp
.ne 2
.na
\fB\fBcrlf\fR\fR
.ad
.RS 20n
Determines how carriage returns are sent. If the value is \fBTRUE\fR, then
carriage returns will be sent as \fB<CR><LF>\fR\&. If the value is \fBFALSE\fR,
then carriage returns will be send as \fB<CR><NUL>\fR\&. The initial value for
this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBcrmod\fR\fR
.ad
.RS 20n
Toggle RETURN mode. When this mode is enabled, most RETURN characters received
from the remote host will be mapped into a RETURN followed by a line feed. This
mode does not affect those characters typed by the user, only those received
from the remote host. This mode is useful only for remote hosts that send
RETURN but never send LINEFEED. The initial value for this toggle is
\fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBdebug\fR\fR
.ad
.RS 20n
Toggle socket level debugging (only available to the super-user). The initial
value for this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBencdebug\fR\fR
.ad
.RS 20n
Turns on debugging information for the encryption code.
.RE
.sp
.ne 2
.na
\fB\fBlocalchars\fR\fR
.ad
.RS 20n
If this toggle is \fBTRUE\fR, then the \fBflush\fR, \fBinterrupt\fR,
\fBquit\fR, \fBerase\fR, and \fBkill\fR characters (see \fBset\fR) are
recognized locally, and transformed into appropriate \fBTELNET\fR control
sequences, respectively \fBao\fR, \fBip\fR, \fBbrk\fR, \fBec\fR, and \fBel\fR
(see \fBsend\fR). The initial value for this toggle is \fBTRUE\fR in "line by
line" mode, and \fBFALSE\fR in "character at a time" mode. When the
\fBLINEMODE\fR option is enabled, the value of \fBlocalchars\fR is ignored, and
assumed always to be \fBTRUE\fR. If \fBLINEMODE\fR has ever been enabled, then
\fBquit\fR is sent as \fBabort\fR, and \fBeof\fR and \fBsuspend\fR are sent as
\fBeof\fR and \fBsusp\fR (see \fBsend\fR above).
.RE
.sp
.ne 2
.na
\fB\fBnetdata\fR\fR
.ad
.RS 20n
Toggle the display of all network data (in hexadecimal format). The initial
value for this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBoptions\fR\fR
.ad
.RS 20n
Toggle the display of some internal \fBTELNET\fR protocol processing (having to
do with \fBtelnet\fR options). The initial value for this toggle is
\fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBprettydump\fR\fR
.ad
.RS 20n
When the \fBnetdata\fR toggle is enabled, if \fBprettydump\fR is enabled, the
output from the \fBnetdata\fR command will be formatted in a more user readable
format. Spaces are put between each character in the output. The beginning of
any \fBTELNET\fR escape sequence is preceded by an asterisk (\fB*\fR) to aid in
locating them.
.RE
.sp
.ne 2
.na
\fB\fBskiprc\fR\fR
.ad
.RS 20n
When the \fBskiprc\fR toggle is \fBTRUE\fR, \fBTELNET\fR skips the reading of
the \fB\&.telnetrc\fR file in the user's home directory when connections are
opened. The initial value for this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBtermdata\fR\fR
.ad
.RS 20n
Toggles the display of all terminal data (in hexadecimal format). The initial
value for this toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fBverbose_encrypt\fR\fR
.ad
.RS 20n
When the \fBverbose_encrypt\fR flag is \fBTRUE\fR, \fBTELNET\fR prints out a
message each time encryption is enabled or disabled. The initial value for this
toggle is \fBFALSE\fR.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.RS 20n
Display the legal \fBtoggle\fR commands.
.RE
.RE
.sp
.ne 2
.na
\fB\fBenviron\fR \fIargument\|.\|.\|.\fR\fR
.ad
.sp .6
.RS 4n
The \fBenviron\fR command is used to manipulate variables that may be sent
through the \fBTELNET ENVIRON\fR option. The initial set of variables is taken
from the users environment. Only the \fBDISPLAY\fR and \fBPRINTER\fR variables
are exported by default. Valid arguments for the \fBenviron\fR command are:
.sp
.ne 2
.na
\fB\fBdefine\fR \fIvariable value\fR\fR
.ad
.sp .6
.RS 4n
Define \fIvariable\fR to have a value of \fIvalue\fR. Any variables defined by
this command are automatically exported. The \fIvalue\fR may be enclosed in
single or double quotes, so that tabs and spaces may be included.
.RE
.sp
.ne 2
.na
\fB\fBundefine\fR \fIvariable\fR\fR
.ad
.sp .6
.RS 4n
Remove \fIvariable\fR from the list of environment variables.
.RE
.sp
.ne 2
.na
\fB\fBexport\fR \fIvariable\fR\fR
.ad
.sp .6
.RS 4n
Mark the \fIvariable\fR to be exported to the remote side.
.RE
.sp
.ne 2
.na
\fB\fBunexport\fR \fIvariable\fR\fR
.ad
.sp .6
.RS 4n
Mark the \fIvariable\fR to not be exported unless explicitly requested by the
remote side.
.RE
.sp
.ne 2
.na
\fB\fBlist\fR\fR
.ad
.sp .6
.RS 4n
List the current set of environment variables. Those marked with an asterisk
(\fB*\fR) will be sent automatically. Other variables will be sent only if
explicitly requested.
.RE
.sp
.ne 2
.na
\fB\fB?\fR\fR
.ad
.sp .6
.RS 4n
Prints out help information for the \fBenviron\fR command.
.RE
.RE
.sp
.ne 2
.na
\fB\fBlogout\fR\fR
.ad
.sp .6
.RS 4n
Sends the \fBtelnet logout\fR option to the remote side. This command is
similar to a \fBclose\fR command. However, if the remote side does not support
the \fBlogout\fR option, nothing happens. If, however, the remote side does
support the \fBlogout\fR option, this command should cause the remote side to
close the \fBTELNET\fR connection. If the remote side also supports the concept
of suspending a user's session for later reattachment, the \fBlogout\fR
argument indicates that the remote side should terminate the session
immediately.
.RE
.SH FILES
.sp
.ne 2
.na
\fB\fB$HOME/.telnetrc\fR\fR
.ad
.RS 19n
file that contains commands to be executed before initiating a \fBtelnet\fR
session
.RE
.SH SEE ALSO
.sp
.LP
\fBrlogin\fR(1), \fBsh\fR(1), \fBstty\fR(1), \fBgetlogin\fR(3C),
\fBhosts\fR(4), \fBkrb5.conf\fR(4), \fBnologin\fR(4), \fBtelnetrc\fR(4),
\fBattributes\fR(5), \fBinet\fR(7P), \fBinet6\fR(7P)
.SH DIAGNOSTICS
.sp
.ne 2
.na
\fB\fBNO LOGINS: System going down in\fR \fIN\fR \fBminutes\fR\fR
.ad
.sp .6
.RS 4n
The machine is in the process of being shut down and logins have been disabled.
.RE
.SH NOTES
.sp
.LP
On some remote systems, echo has to be turned off manually when in "line by
line" mode.
.sp
.LP
In "old line by line" mode, or \fBLINEMODE\fR, the terminal's \fBEOF\fR
character is only recognized (and sent to the remote system) when it is the
first character on a line.
.sp
.LP
The \fBtelnet\fR protocol only uses single DES for session
protection\(emclients request service tickets with single DES session keys. The
KDC must know that host service principals that offer the \fBtelnet\fR service
support single DES, which, in practice, means that such principals must have
single DES keys in the KDC database.
|