歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 使用CMD telnet登錄虛擬機Linux Ubuntu7.10

使用CMD telnet登錄虛擬機Linux Ubuntu7.10

日期:2017/2/28 16:59:23   编辑:Linux教程

每次要做什麼東西,跑到虛擬機裡邊來很麻煩,要想轉出去還得用Ctrl+Alt,如果是作開發的話再打開 終端,當然也可以直接啟動在text mode下,但是那個模式下邊窗口很小,滾動之後上邊的東西就看不見了,所以我一致在尋找通過Windows的CMD操作虛擬機中的Linux的方法。終於找到了,那就是使用telnet。

1. sudo apt-get install xinetd telnetd

2. 安裝成功後,系統會有相應提示(我使用的是7.10)
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:

telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd

If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.

3. sudo vi /etc/xinetd.conf並加入以下內容(該文件本身存在,只是加入幾行即可):
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
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
}
includedir /etc/xinetd.d

Copyright © Linux教程網 All Rights Reserved