Fedora40安装telnet-server启用telnet服务
- 安装 telnet-server
sudo yum install telnet-server
或
sudo dnf install telnet-server
- 启用服务
fedora40 或 CentosStream9 不能用 yum或dnf安装xinetd
,
telnet-server 的服务名为: telnet.socket
启用 telnet.socket.service
sudo systemctl enable telnet.socket
sudo systemctl start telnet.socket
systemctl status telnet.socket
- 关闭防火墙,或开放端口23
- 关闭防火墙
sudo systemctl disable firewalld ; sudo systemctl stop firewalld
- 开放23端口
sudo firewall-cmd --permanent --add-port=23/tcp && sudo firewall-cmd --reload
- 合为一步
sudo yum install telnet-server -y
sudo systemctl enable telnet.socket
sudo systemctl start telnet.socket
systemctl status telnet.socket
sudo firewall-cmd --permanent --add-port=23/tcp && sudo firewall-cmd --reload
- windows 安装telnet
"win键+r"运行optionalfeatures
打开 “启用或关闭 Windows 功能”
optionalfeatures
勾选 “Telnet 客户端” 选项 [确定]
在cmd控制台就能使用 telnet
命令了
telnet 目标ip地址