centos 開啟Telnet 服務

來源:互聯網
上載者:User

標籤:telnet centos

Telnet 協議

    Telnet協議是TCP/IP協議族中的一員,是Internet遠程登陸服務的標準協議和主要方式。預設23號連接埠。

    

在搭建window登陸centos中 首先要確保centos中是否安裝telnet服務

檢查命令

rpm -qa |grep telnet

如若輸出為空白


則為沒安裝

安裝 telnet 首先需要安裝xinetd 服務,telnet基於此服務來進行工作

首先保證centos能串連網路,使用yum安裝

yum install xinetd

yum install telnet

yum install telnet-server

安裝完成之後

修改設定檔

vim /etc/xinetd.d/telnet出現如下畫面


    service telnet

{

    disable = no 

    flags                       =reuser

    socket_type            =stream

    wailt                        =no

    user                         =root

    server                      =/usr/sbin/in.telnetd

    log_on_failure        +=USRID


將其中 disable 中的yes改成no  “此處已修改過”

儲存之後 來啟動由於xinetd

service xinetd restart

由於iptables 會阻止telnet服務 所以要開啟 23 udp 和tcp

iptables -I INPUT -p tcp --dport 23 -jACCEPT

 

iptables -I INPUT -p udp --dport 23 -jACCEPT

儲存防火牆配置

service  iptables save

重啟防火牆

service iptables restart


註:若想root登陸telnet要編輯文字檔

vi  /etc/securetty

在末尾添加 pts/1 pts/2 pts/3


本文出自 “11971748” 部落格,請務必保留此出處http://11981748.blog.51cto.com/11971748/1949156

centos 開啟Telnet 服務

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.