時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(0)
Telnet是一個(gè)有效的遠(yuǎn)程登錄協(xié)議。這里我們就來(lái)介紹一下Telnet服務(wù)的相關(guān)設(shè)置。那么我們主要通過(guò)幾個(gè)簡(jiǎn)單的步驟來(lái)完成操作。那么具體的內(nèi)容如下:
1、確定你的Telnet服務(wù)打開(kāi)沒(méi)有:
[root@111 ~]# chkconfig --list|grep Telnet
ekrb5-Telnet: off
krb5-Telnet: off
[root@111 ~]#
注意檢查結(jié)果這里是關(guān)閉狀態(tài)
2、打開(kāi)Telnet服務(wù):
[root@111 ~]# chkconfig krb5-Telnet on
[root@111 ~]# chkconfig --list|grep Telnet
ekrb5-Telnet: offv
krb5-Telnet: on
[root@111 ~]#
檢查已經(jīng)被打開(kāi)了
3、修改登陸文件securetty,主要增加要登陸的終端點(diǎn)
[root@111 ~]# vi /etc/securetty
增加如下幾行:
pts/1
pts/2
pts/3
pts/4
pts/5
……
保存退出即可.
如果是chkconfig krb5-Telnet on
會(huì)提示Unencrypted connection refused. Goodbye.Connection closed by foreign host.看錯(cuò)誤信息好像是說(shuō)的為加密的連接被拒絕,查看了他的配置文件也沒(méi)發(fā)現(xiàn)有什么關(guān)于加密的選項(xiàng),而且配置文件也很正確,于是到google上去搜索了一大圈,最后終于找到一個(gè)老外寫(xiě)的一個(gè)解決方法:
I really needed a bit of guidance and you provided it./sbin/chkconfig --list |grep TelnetThe above command told me I had both krb5-Telnet and ekrb5-Telnet, andalso the installed Telnet all on. Initially I did not know what theywere all for. After turning them on and off and testing my Telnetconnection from another box I realised that "ekrb5-Telnet" was theencrypted Telnet server that I needed to turn off to run "krb-Telnet"which allowed non-encrypted Telnet connections.eg /sbin/chkconfig ekrb5-Telnet off
原來(lái)ekrb5-Telnet是一個(gè)需要加密的Telnet服務(wù),把這個(gè)服務(wù)啟動(dòng)上當(dāng)然就需要加密了.解決方法:將/etc/xinetd.d/ekrb5-Telnet里面的disable改成=yes,再重啟xinetd服務(wù)service xinetd restart就OK了!
關(guān)鍵詞標(biāo)簽:Telnet
相關(guān)閱讀
熱門(mén)文章 路由器地址大全-各品牌路由設(shè)置地址 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 Nslookup命令詳解-域名DNS診斷 站長(zhǎng)裝備:十大網(wǎng)站管理員服務(wù)器工具軟件
人氣排行 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 路由器地址大全-各品牌路由設(shè)置地址 騰達(dá)路由器怎么設(shè)置?騰達(dá)路由器設(shè)置教程 ADSL雙線負(fù)載均衡設(shè)置詳細(xì)圖文教程 路由表說(shuō)明(詳解route print) Nslookup命令詳解-域名DNS診斷 網(wǎng)管員實(shí)際工作的一天 網(wǎng)管必會(huì)!了解交換機(jī)控制端口流量