企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 一、安装telnet ### 1.1确认是否安准了telnet和xinetd(默认是没有安装) ``` rpm -qa telnet* rpm -qa xinetd ``` 2.安装 yum -y install telnet-server xinetd 3.修改配置文件 vi /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 } 将disable改成no 4.允许root登录 vi /etc/pam.d/remote 注释红线标识的一行 5.启动服务 1)启动xinetd就会开启telnet服务 service xinetd start 2)检查telnet监听是否正常 yum -y install net-tools netstat -tunlp|grep 23 3)设置服务自启动 首先检查是否自启动 systemctl list-unit-files | grep enable |grep xin 没有的话加入自启动 systemctl enable xinetd systemctl enable telnet.socket 6.检查防火墙,是否开始23端口 1) 检查防火墙是否开启 firewall-cmd --state 2) 开启23端口 firewall-cmd --permanent --add-port=23/tcp firewall-cmd --reload 7.测试telnet 输入命令:telnet <ip> ,接着输入用户名密码登录 二、升级openssh 1. 查看版本 ssh -V 2. 安装依赖 yum -y install pam-devel.x86_64 zlib-devel.x86_64 3. 卸载旧版程序: rpm -e --nodeps `rpm -qa|grep openss` ``` root@ubuntu01:/opt# telnet 192.168.56.30 Trying 192.168.56.30... Connected to 192.168.56.30. Escape character is '^]'. Kernel 3.10.0-862.el7.x86_64 on an x86_64 localhost login: root Password: Last login: Tue Oct 16 01:42:36 from 192.168.56.1 ```