Centos7 - install telnet service

1. Execute the installation statement

  • yum -y install telnet-server.x86_64
  • yum -y install telnet.x86_64
  • yum -y install xinetd.x86_64

2. Set the boot to start automatically:

  • systemctl enable xinetd.service
  • systemctl enable telnet.socket

3, start the service:

  • systemctl start telnet.socket
  • systemctl start xinetd

 4. Edit vi /etc/securetty to allow root account login and add two lines at the end

1  pts/0
 2  pts/1
 3 pts/2
Note: 3 are allowed to log in for the terminal, ,, and the fourth is rejected

5. Successful landing

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324925942&siteId=291194637