正在Linux体系高运用Telnet,可以真现Web效劳器的长途节制,用户否正在Telnet外输进相干号令时常节制,这么正在Linux高要若何装置及运用Telnet呢?
如今办理linux曾经很长人用telnet,根本皆用crt、xshell或者putty。上面给各人引见若何经由过程telnet去监控效劳器机能。
1、yum装置telnet
yum install telnet-server
2、设置telnet
telnet是搁正在xinetd面,将disable改为yes,以下:
# 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 # 从yes改为no
}
若是须要运用root运用telnet登录,添上pts/0、pts1那样的,不然跳过那一步
# cat /etc/securetty | grep pts
pts/0
pts/1
pts/2
pts/3
3、封动telnet
# service xinetd start
Starting xinetd: [ OK ]
四、确认能否封动
# netstat -lnt | grep :23
tcp 0 0 :::23 :::* LISTEN
5、创立通俗用户
若是曾经有效户了,这么能够跳过那一步
# useradd ttlsa # 创立用户
# passwd ttlsa # 批改暗码
Changing password for user ttlsa.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
6、telnet连贯测试
运用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 ~]#
通俗用户登录
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, 21: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.00s w
root pts/0 51.241.12.49 08:27 1:37 0.01s 0.01s -bash
$
下面便是Linux装置运用Telnet的要领引见了,正在装置完Telnet后,要停止Telnet连贯测试,包孕root登录战通俗用户登录。
相关文章