Ubuntu指令大全系列六——遠(yuǎn)程登錄
設(shè)置IP地址 ifconfig eth0 192.168.1.2 netmask 255.255.255.0telnet
1.安裝telnet-server sudo dpkg -i xinetd_1%3a2.3.14-7ubuntu3_i386.deb sudo dpkg -i telnetd_0.17-36build1_i386.deb 如果連網(wǎng)的情況下可以 sudo apt-get install telnet 進(jìn)行安裝2.設(shè)置一下ip sudo ifconfig eth0 192.168.1.222 netmask 255.255.255.03.修改/etc/xinetd.conf配置文件 vim /etc/xinetd.conf加入如下內(nèi)容 defaults{# Please note that you need a log_type line to be able to use log_on_success# and log_on_failure. The default is the following :# log_type = SYSLOG daemon info(插入如下部分)instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30}4.修改/etc/xinetd.d/telnet 配置文件 vim /etc/xinetd.d/telnet加入如下內(nèi)容 # default: on # description: The telnet server serves telnet sessions; it uses # unencrypted username/password pairs for authentication. service telnet { disable = noflags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID } 5.重啟網(wǎng)絡(luò)服務(wù)sudo /etc/init.d/xinetd restart6.打開window命令行 telnet 192.168.1.222
相關(guān)文章:
1. jsp網(wǎng)頁實(shí)現(xiàn)貪吃蛇小游戲2. jsp+servlet簡單實(shí)現(xiàn)上傳文件功能(保存目錄改進(jìn))3. JavaScript實(shí)現(xiàn)組件化和模塊化方法詳解4. ASP.NET MVC遍歷驗(yàn)證ModelState的錯誤信息5. HTML5 Canvas繪制圖形從入門到精通6. .Net Core和RabbitMQ限制循環(huán)消費(fèi)的方法7. 淺談SpringMVC jsp前臺獲取參數(shù)的方式 EL表達(dá)式8. SpringMVC+Jquery實(shí)現(xiàn)Ajax功能9. ASP中if語句、select 、while循環(huán)的使用方法10. asp(vbs)Rs.Open和Conn.Execute的詳解和區(qū)別及&H0001的說明
