ekrb5-telnet的安裝和開(kāi)啟
我們知道,telnet的遠(yuǎn)程登錄功能可以幫助我們完成很多工作,節(jié)約很多時(shí)間。尤其是它友好的性能,在很多系統(tǒng)和軟件服務(wù)中都有它的體現(xiàn)。那么,接下來(lái)我們就對(duì)ekrb5-telnet的一些具體的安裝檢測(cè)過(guò)程進(jìn)行一下介紹。
1、確定你的telnet服務(wù)打開(kāi)沒(méi)有:
- [root@111 ~]# chkconfig --list|greptelnet
- ekrb5-telnet: off
- krb5-telnet: off
- [root@111 ~]#
注意檢查結(jié)果這里是關(guān)閉狀態(tài)
2、打開(kāi)telnet服務(wù):
- [root@111 ~]# chkconfig krb5-telneton
- [root@111 ~]# chkconfig --list|greptelnet
- 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-telneton
會(huì)提示Unencrypted connection refused. Goodbye.Connection closed by foreign host.看錯(cuò)誤信息好像是說(shuō)的為加密的連接被拒絕,查看了他的配置文件也沒(méi)發(fā)現(xiàn)有什么關(guān)于加密的選項(xiàng),而且配置文件也很正確,于是到google上去搜索了一大圈,最后終于找到一個(gè)老外寫的一個(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-telnetand ekrb5-telnet, andalso the installedtelnetall 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 theencryptedtelnetserver that I needed to turn off to run "krb-telnet"which allowed non-encryptedtelnetconnections.eg /sbin/chkconfig ekrb5-telnetoffThanks for your help.
原來(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了!