溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

在RHEL 5上telnet的開啟過程是什么

發(fā)布時(shí)間:2022-01-05 16:46:52 來源:億速云 閱讀:115 作者:iii 欄目:系統(tǒng)運(yùn)維

本篇內(nèi)容主要講解“在RHEL 5上telnet的開啟過程是什么”,感興趣的朋友不妨來看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“在RHEL 5上telnet的開啟過程是什么”吧!

1、確定你的telnet服務(wù)打開沒有:

[root@111 ~]# chkconfig --list|grep telnet

ekrb5-telnet: off

krb5-telnet: off

[root@111 ~]#

注意檢查結(jié)果這里是關(guān)閉狀態(tài)

2、打開telnet服務(wù):

[root@111 ~]# chkconfig krb5-telnet on

[root@111 ~]# chkconfig --list|grep telnet

ekrb5-telnet: offv

krb5-telnet: on

[root@111 ~]#

檢查已經(jīng)被打開了

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ò)誤信息好像是說的為加密的連接被拒絕,查看了他的配置文件也沒發(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-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 offThanks for your help.

原來ekrb5-telnet是一個(gè)需要加密的telnet服務(wù),把這個(gè)服務(wù)啟動(dòng)上當(dāng)然就需要加密了。解決方法:將/etc/xinetd.d/ekrb5-telnet里面的disable改成=yes,再重啟xinetd服務(wù)service xinetd restart就OK了!

到此,相信大家對(duì)“在RHEL 5上telnet的開啟過程是什么”有了更深的了解,不妨來實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI