Enable Telnet in Linux Server

Posted In SSH/Telnet - By Tum. On Friday, June 5th, 2009 With 0 Comments

ใน Linux จะไม่อนุญาติให้มีการใช้งาน telnet เนื่องจากว่าไม่มีความปลอดภัยในการใช้งาน จึงได้ใช้ ssh แทน สำหรับการเปิดใช้งานและการติดตั้ง telnet นั้นสามารถทำได้โดยการติดตั้ง package telnet-server ถ้าเป็น

redhat จะใช้คำสั่ง

#yum install -y telnet-server

ubuntu จะใช้คำสั่ง

#sudo apt-get install telnetd

หลังจากได้ install package เรียบร้อยแล้ว ให้แก้ไขไฟล์ /etc/xinetd.d/telnet

service telnet
{
disable = yes //ให้แก้ไขเป็น no
socket_type = stream
wait = no
user = root
server = /usr/libexec/telnetd
groups = yes
flags = REUSE
}

แล้วตามด้วยคำสั่ง service xinetd restart

หรือใช้คำสั่ง
#chkconfig –level 345 telnet on //สำหรับ red hat
#sudo /etc/init.d/inetd restart //สำหรับ ubuntu

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>