Вы находитесь на странице: 1из 10

4 - Telnet. Telnet. SSH.

SSH.

(Telnet) - ..

Internet. , , 1996.

InterNet. , .. ,
1997.

TELNET

Telnet Rlogin:

OpenSSH

SSH

SSH

SSH OpenSSH: ,

4.1 Telnet.
Telnet - .
Telnet , (
(, ftp) ).
Telnet :

telnet - ;

telnetd - ( );

TELNET - .

Telnet.

4.2 Telnet
- RFC0158 (Telnet Protocol: A Proposed Document T.C. O'Sullivan May-191971).
- RFC0855 (Telnet Option Specifications J. Postel, J.K. Reynolds May-011983).
NVT (network virtual terminal) - ,
, ,
.
23.
4.2.1 Telnet
, Telnet
:

.
NVT ,
GO AHEAD (GA) ,
. NVT
NVT , ,
.

. ( )
.
( ECHO - RFC 857)
( ).
( ):
SUPPRESS GO AHEAD (RFC 858).
WILL ECHO.
DO SUPPRESS GO AHEAD (
), WILL SUPPRESS GO AHEAD (
).
WILL ECHO,
.

.
- (ECHO SUPPRESS GO AHEAD) , Telnet
.

(linemode).
linemode (RFC 1184).

.

4.2.2

4.2.2.1 -
Linux.
[root@Linux /]# telnet // TELNET
telnet> toggle options // ( )
Will show option processing. //
telnet> open 194.85.241.18 // 194.85.241.18
Trying 194.85.241.18... //
Connected to 194.85.241.18. //
Escape character is '^]'. //
1) SENT DO SUPPRESS GO AHEAD // SUPPRESS
GO AHEAD. 14.
2) SENT WILL TERMINAL TYPE // .
9.
3) SENT WILL NAWS // " ".
(15), (16).
4) SENT WILL TSPEED // " ".
(10), (21).
5) SENT WILL LFLOW // .
17.
6) SENT WILL LINEMODE // .
18.
7) SENT WILL NEW-ENVIRON //
. 13.
8) SENT DO STATUS //
. 19.
9) RCVD DO TERMINAL TYPE // .
24, 25.
10) RCVD DO TSPEED // .
20, 21.
11) RCVD DO XDISPLOC // .
24, 25.
12) SENT WONT XDISPLOC
13) RCVD DO NEW-ENVIRON // .
22, 23.
14) RCVD WILL SUPPRESS GO AHEAD // SUPPRESS
GO AHEAD.
15) RCVD DO NAWS // . 16.
16) SENT IAC SB NAWS 0 80 (80) 0 24 (24) // (8024).
17) RCVD DO LFLOW // .
18) RCVD DONT LINEMODE // .
19) RCVD WILL STATUS //
.
20) RCVD IAC SB TERMINAL-SPEED SEND //
.
21) SENT IAC SB TERMINAL-SPEED IS 38400,38400 //
.
22) RCVD IAC SB NEW-ENVIRON SEND //
.
23) SENT IAC SB NEW-ENVIRON IS // .

24) RCVD IAC SB TERMINAL-TYPE SEND // .


25) SENT IAC SB TERMINAL-TYPE IS "XTERM" // .
26) RCVD DO ECHO // .
27) SENT WONT ECHO // .
28) RCVD WILL ECHO // .
29) SENT DO ECHO // .
//
Red Hat Linux release 9 (Shrike) //
Kernel 2.4.20-8smp on an i686 //
login: name //
Password: //
Last login: Thu Sep 11 16:19:02 from 194.85.241.11 //
[name@proxy name]$ // linux
1
, (). .
[root@proxy]# telnet
telnet> toggle options
Will show option processing.
telnet> open 194.85.241.69
Trying 194.85.241.69...
Connected to 194.85.241.69.
Escape character is '^]'.
SENT DO SUPPRESS GO AHEAD
SENT WILL TERMINAL TYPE
SENT WILL NAWS
SENT WILL TSPEED
SENT WILL LFLOW
SENT WILL LINEMODE
SENT WILL NEW-ENVIRON
SENT DO STATUS
RCVD WILL BINARY
SENT DO BINARY
RCVD DO BINARY
SENT WILL BINARY
RCVD WILL ECHO
SENT DO ECHO
RCVD WILL SUPPRESS GO AHEAD
RCVD DONT TERMINAL TYPE
RCVD DONT NAWS
RCVD DONT TSPEED
RCVD DONT LFLOW
RCVD DONT LINEMODE
RCVD DONT NEW-ENVIRON
RCVD WONT STATUS
RCVD WILL BINARY
RCVD DO BINARY

RCVD WILL ECHO


KAZAN SCIENTIFIC CENTRE
ACADEMI OF SCIENCE OF RUSSIA
WELCOME TO DIONIS !
ENTER YOUR NAME => name
PASSWORD =>
LANGUAGE =>
System DIONIS 5.00. (C) "Factor" Ltd.
Host dionis.kfti.knc.ru
28: name - logon: 12:25am Wed 09/17/03
Last logoff: 11:51am Wed 09/17/03
To get help enter "?" or "??" or "? <command>".
To return one level up enter "-".
You have new messages: 1
Would You read them? (Yes, No, Messages, NOTifications, Get) => //

2
, (cisco). .
[root@KFTI-Linux home]# telnet
telnet> toggle options
Will show option processing.
telnet> open 194.85.241.7
Trying 194.85.241.7...
Connected to 194.85.241.7.
Escape character is '^]'.
SENT DO SUPPRESS GO AHEAD
SENT WILL TERMINAL TYPE
SENT WILL NAWS
SENT WILL TSPEED
SENT WILL LFLOW
SENT WILL LINEMODE
SENT WILL NEW-ENVIRON
SENT DO STATUS
RCVD WILL ECHO
SENT DO ECHO
RCVD WILL SUPPRESS GO AHEAD
RCVD DO TERMINAL TYPE
RCVD DO NAWS
SENT IAC SB NAWS 0 100 (100) 0 39 (39)
RCVD IAC SB TERMINAL-TYPE SEND

SENT IAC SB TERMINAL-TYPE IS "XTERM"


RCVD DONT TSPEED
RCVD DONT LFLOW
RCVD DONT LINEMODE
RCVD DONT NEW-ENVIRON
RCVD WONT STATUS
User Access Verification
Password:
Cisco2514-KFTI> // cisco
3
4.2.3

()

EOF


236

SUSP
237

ABORT

(
)


238

EOR


239

SE


240

NOP


241

DM


242

BRK

243

IP


244

AO


245

AYT

?
246

EC

escape
247

EL


248

GA


249

SB


250

WILL
251

:
.

252

:
.

253

: ,
.

254

: ,
.

WONT

DO

DONT

IAC

255
255

4.4 Telnet
TELNET
Telnet ( Windows).
open : open _ _.
Telnet.
close close
Telnet.
display display Telnet.
display .
Telnet ( Telnet)
CTRL+]. Telnet. (
Telnet ENTER.) :

WILL AUTH ( NTLM)

WONT AUTH

WILL TERM TYPE

WONT TERM TYPE

LOCALECHO off

LOCALECHO on

quit quit Telnet.


set set ,
, NTLM,
.

SET NTLM NTLM.


NTLM

.

SET LOCALECHO .
SET TERM {ANSI|VT100|VT52|VTNT} .
VT100
. VTNT
, edit.

ESCAPE
. ,
CTRL+P, set escape, CTRL+P,
ENTER.

LOGFILE Telnet.
.
.

LOGGING .
, .

unset unset

.

UNSET NLM NLM.

UNSET LOCALECHO .

status status , Telnet.


CTRL+] CTRL+] Telnet
.
enter enter
( ).
? help .
4.5 SSH
SSH (Secure Shell) - ,
.
SSH telnet; X11
( ); c sftp.
4.6 SSH
22.
:

-
.
: ,
.

-
:
, , ..

- () ,
,
( ).

ssh

1-19
20-29
30-49
50-59
60-79
80-89
90-127
90-128
192-255

( )


( )
(,
)
( )
C,
( )

4.7 SSH
, UNIX - , Windows - .
Windows SSH - Putty, (
http://www.chiark.greenend.org.uk/~sgtatham/putty/ ) .
, telnet.