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. 理解PHP5中static和const關(guān)鍵字2. IntelliJ IDEA安裝插件的方法步驟3. php模擬實(shí)現(xiàn)斗地主發(fā)牌4. .Net Core使用Coravel實(shí)現(xiàn)任務(wù)調(diào)度的完整步驟5. Vue封裝一個(gè)TodoList的案例與瀏覽器本地緩存的應(yīng)用實(shí)現(xiàn)6. jQuery 實(shí)現(xiàn)DOM元素拖拽交換位置的實(shí)例代碼7. Vuex localStorage的具體使用8. vue 使用localstorage實(shí)現(xiàn)面包屑的操作9. spring acegi security 1.0.0 發(fā)布10. MyBatis中的JdbcType映射使用詳解

網(wǎng)公網(wǎng)安備