How Telnet can be installed with Linux

Source: Internet
Author: User
Tags centos

Now the management of Linux has been very few people use Telnet, the basic use of CRT, Xshell or putty. Because the next need to speak Zabbix-free client monitoring only Telnet, through Telnet to monitor server performance.

Yum Install Telnet

Yum Simple and quick installation
Yum Install Telnet-server

Configure Telnet

Telnet is placed in the xinetd, the disable is changed to Yes, as follows:
# vim/etc/xinetd.d/telnet
# Default:on
# description:the Telnet Server serves Telnet sessions; It uses \
# unencrypted Username/password pairs for authentication.
Service Telnet
{
Flags = Reuse
Socket_type = Stream
wait = no
user = root
Server =/usr/sbin/in.telnetd
Log_on_failure + + USERID
disable = no # change from Yes to No
}

If you need to use the Telnet login with root, plus pts/0, pts1, or skip this step
# Cat/etc/securetty | grep pts
pts/0
Pts/1
Pts/2
Pts/3

Start Telnet

# service XINETD Start
Starting xinetd: [OK]

confirm whether to start

# Netstat-lnt | grep:23
tcp        0      0:: 23& nbsp;                      :::*                          LISTEN

 
Create normal user

If you already have a user, you can skip this step
# useradd Ttlsa # Create user
# passwd Ttlsa # Modify password
changing password for user ttlsa.
New password:
Retype new password:
Passwd:all authentication tokens updated.

telnet Connection test

Use root login
CentOS release 6.5 (Final)
Kernel 3.15.4-x86_64-linode45 on a X 86_64
Login:root
Password:
Last Login:thu Feb a 08:37:11 from 58.246.52.46
[root@li220-237 ~]#

Normal User Login
CentOS release 6.5 (Final)
Kernel 3.15.4-x86_64-linode45 on a x86_64
Login:ttlsa
Password:
$ W
 08:41:05 up 199 days, 21:57,  2 users,  load average:0.00, 0.01, 0.05
USER   &N Bsp tty      from               login@   idle   jcpu   pcpu WHAT
ttlsa    pts/1     51.241.12.49     08:40    1.00s  0.00s  0.00s w
root      pts/0    51.241.12.49     08:27    1:37    0.01s  0.01s-bash
$

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.