TELNET – Somthing Different (Contd)
1.Escape character is used for access telnet commands in remote machine , by default the escape character is ‘^’
Example
telnet> set escap #
escape character is ‘#’.
(or)
[root@myserver ~]# telnet -e ‘#’ 192.168.3.138
Telnet escape character is ‘#’.
Trying 192.168.3.138…
Connected to 192.168.3.138 (192.168.3.138).
Escape character is ‘#’.
Red Hat Enterprise Linux WS release 4 (Nahant)
Kernel 2.6.9-5.ELsmp on an i686
login: cam1
Password:
Last login: Wed Sep 26 09:02:18 from myserver
[cam1@MB327SCS068 ~]$
2. The opposite command of set is unset
Example
telnet> unset escape
escape character is ‘off’.
2. Connecting remote host using open command
Example
telnet> open 192.168.3.138
Trying 192.168.3.138…
Connected to 192.168.3.138 (192.168.3.138).
Escape character is ‘off’.
Red Hat Enterprise Linux WS release 4 (Nahant)
Kernel 2.6.9-5.ELsmp on an i686
login: cam1
Password:
Last login: Wed Sep 26 08:55:59 from myserver
[cam1@MB327SCS068 ~]$
3. In remote terminal we can execute the following commands
a) encrpt
b) close
c) send
d) logout
e) quit
f) status
For executing telnet command in remote machine first logon the remote system using open command and then type telnet , give one space and press your escape character (here #) . don’t press enter key . when you press escape character after telnet,remote machine automatically enter into telnet mode . here you can execute the commands
Example
[cam1@MB327SCS068 ~]$ telnet (one space + #)
telnet>
4. Printing telnet information – status command
[cam1@MB327SCS068 ~]$ telnet
telnet> status
Connected to 192.168.3.138 (192.168.3.138).
Operating in single character mode
Catching signals locally
Remote character echo
Local flow control
Escape character is ‘#’.
5. Authentication using auth command
a) for checking authentication
[cam1@MB327SCS068 ~]$ telnet
telnet> auth status
Authentication enabled
KERBEROS_V5: enabled
KERBEROS_V4: enabled
b) We can enable and disable the authentication
telnet> auth enable ?
auth enable ‘type’
Where ‘type’ is one of:
NULL
KERBEROS_V5
KERBEROS_V4
telnet> auth disable ?
auth disable ‘type’
Where ‘type’ is one of:
NULL
KERBEROS_V5
KERBEROS_V4
Example
telnet> auth disable KERBEROS_V5
telnet> auth enable KERBEROS_V5
6. send command
telnet> send ?
ao Send Telnet Abort output
ayt Send Telnet ‘Are You There’
brk Send Telnet Break
ec Send Telnet Erase Character
el Send Telnet Erase Line
escape Send current escape character
ga Send Telnet ‘Go Ahead’ sequence
ip Send Telnet Interrupt Process
nop Send Telnet ‘No operation’
eor Send Telnet ‘End of Record’
abort Send Telnet ‘Abort Process’
susp Send Telnet ‘Suspend Process’
eof Send Telnet End of File Character
synch Perform Telnet ‘Synch operation’
getstatus Send request for STATUS
? Display send options
Some Examples
a) telnet> send ayt
[MB327SCS068 : yes]
b) telnet> send getstatus
RCVD IAC SB STATUS IS
WILL ECHO
WILL SUPPRESS GO AHEAD
WILL STATUS
DO TERMINAL TYPE
DO NAWS
DO TSPEED
DO LFLOW
DO XDISPLOC
DO NEW-ENVIRON
SB TOGGLE-FLOW-CONTROL ON SE
7. close / logout / quit commands
a) [cam1@MB327SCS068 ~]$ telnet
telnet> quit
Connection closed.
b) [cam1@MB327SCS068 ~]$ telnet
telnet> close
Connection closed.c) [cam1@MB327SCS068 ~]$ telnet
telnet> logout
Connection closed by foreign host.
Still lot of operations are there in telnet . Some basic idea about telnet commands has only given here.
