Step

  
for Linux installation using Telnet

Using Telnet under Linux system can realize remote control of Web server. Users can input relevant commands in Telnet to control frequently. How to install and use Telnet under Linux?

Now management has very few people use linux telnet, basically with crt, xshell or putty. Here's how to monitor server performance through telnet.

First, yum install telnet

yum install telnet-server

Second, configure telnet

telnet is placed in xinetd, disable 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 telnet to log in with root, plus pts/0, pts1, otherwise skip this step

# cat /Etc/securetty |  Grep pts

pts/0

pts/1

pts/2

pts/3

Third, start telnet

# service xinetd start

Starting xinetd: [ OK ]

4. Confirm whether to start

# netstat -lnt |  Grep :23

tcp 0 0 :::23 :::* LISTEN

V. Creating a normal user

If you already have a user, you can skip this step.

# useradd ttlsa # Create User

# passwd ttlsa # Change Password

Changing password for user ttlsa.

New password:

Retype new password:

passwd: all authentication tokens updated successfully.

VI. telnet connection test

login using root

CentOS release 6.5 (Final )

Kernel 3.15.4-x86_64-linode45 on an x86_64

login: root

Password:

Last login: Thu Feb 12 08:37 :11 from 58.246.52.46

[root@li220-237 ~]#

Ordinary User Login

CentOS release 6.5 (Final)

Kernel 3.15 .4-x86_64-linode45 on an x86_64

login: ttlsa

Password:

$ w

08:41:05 up 199 days, 2 1:57, 2 users, load average: 0.00, 0.01, 0.05

USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

ttlsa pts/1 51.241.12.49 08:40 1.00s 0.00s 0.00sw

root pts/0 51.241.12.49 08:27 1:37 0.01s 0.01s -bash

$

The above is the introduction of Linux installation using Telnet. After installing Telnet, you need to perform Telnet connection test, including root login and normal user login.

Copyright © Windows knowledge All Rights Reserved