Telnet is a popular protocol used to log on to a remote computer over the Internet. The Telnet server package supports remote host logon. To communicate with another host through Telnet,
You can contact the host by name or Internet address format (for example, 192.168.1.10. Telnet command line prompt.
Use Telnet Service
To start using the Telnet service, type the following command to connect to the remote server:
Telnet Ip_address/ Server_name
WhereIp_addressIs the IP address of the server,Server_nameIs the name of the server.
Remarks: By default, the server uses NTLM authentication and prompts you to enter the user name and password.
By default, the telnet server is installed in windows. How do I enable the telnet service?
SC config tlntsvr start = auto automatic
SC config tlntsvr start = disabled
SC config tlntsvr start = demand Manual
Note = There is a space behind it.
Net start telnet Service
Net stop telnet Service
1. Install the telnet package (usually two ).
1. telnet-client (or telnet). This package provides the telnet client program;
2. It is the telnet-server software package. This is the real Telnet server software package!
Check whether these software packages are installed before installation. The method is as follows:
[Root @ localhost ~] # Rpm-q telnet
Telnet-0.17-38.el5
Telnet client is usually installed by default
[Root @ localhost ~] # Rpm-q telnet-server
None indicates Not Installed
Ii. Install telnet-server
Run the following command to install:
[Root @ localhost cdrom] # rpm-ivh -- force telnet-server-0.17-39.el5.i386.rpm
Warning: CentOS/telnet-server-0.17-39.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Error: Failed dependencies:
Xinetd is needed by telnet-server-0.17-39.el5.i386
An error occurred while installing the xinetd dependency package. Please install it first!
[Root @ localhost cdrom] # rpm-ivh -- force xinetd-2.3.14-10.el5.i386.rpm
Warning: CentOS/xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ######################################## ### [100%]
1: xinetd ####################################### #### [100%]
Installation Complete
Next we will install telnet-server
[Root @ localhost cdrom] # rpm-ivh -- force telnet-server-0.17-39.el5.i386.rpm
Warning: CentOS/telnet-server-0.17-39.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ######################################## ### [100%]
1: telnet-server ##################################### ###### [100%]
Now we can install it normally. After the installation is complete, we need to configure the service!
Iii. Configuration Service
1. Start the service
Method 1: Use ntsysv. In the displayed window, select telnet and press OK!
Space key "select", tab key "OK & cancel"
Method 2: edit/etc/xinetd. d/telnet
# Vi/etc/xinetd. d/telnet
[Root @ localhost cdrom] # vi/etc/xinetd. d/telnet
Method 3: root @ localhost cdrom] # chkconfig telnet on # set to enable the telnet service when the system is started.
2. Activate the service
Telnet is stored under xinetd. Therefore, as long as xinetd is re-activated, the settings in xinetd can be re-read. Therefore, the configured telnet can be activated.
[Root @ localhost cdrom] # service xinetd start
Start xinetd: [OK]
Iv. Test services
C: \> telnet 192.168.13.55
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel 2.6.18-53. el5 on an i686
Login:
Reference books:
Http://books.google.cn/books? Id = 9-J_jjcTTiwC & pg = RA1-PT8 & lpg = RA1-PT8 & dq = l % E5 % AE % 89% E8 % A3 % 85telnet-server-0% 5B1% 5D. 17-25.i386.rpm & source = bl & ots = 1XYEm0SUAb & sig = AoWczrjw _ cKR732M9YBtUhqSfA & hl = zh-CN & ei = require & sa = X & oi = book_result & ct = result & resnum = 1 # v = onepage & q = & f = false
Again, there are three methods to start telnet:
1. Use commands
# Chkconfig -- add telnet
# Chkconfig telnet on
2. edit the file/etc/xinetd. d/telnet.
Change disable = yes to disable = no to save and exit.
Restart service: service xinetd restart
3. Graphic Interface
Find a telnet entry and Press space to select it. Select OK to exit.
Restart service: service xinetd restart
Note: If the system is installed with a firewall
# Iptables-F # disable Firewall
Remote telnet to the server
By default, you cannot log on as the root user !!!
Modify the securetty file in/etc and log on as the root user.
Add under tty11
Pts/0
Pts/1
Pts/2
Pts/3
Pts/4
Pts/5
Pts/6
Pts/7
Pts/8
Pts/9