1. Install VMware Workstation
2. Create a Ubuntu Virtual Machine: pay special attention to the network bridging mode. Below are my various settings
3. Enable the telnet service in Ubuntu
1. sudo apt-Get install xinetd telnetd
2. After the installation is successful, the system will prompt accordingly,
Sudo VI/etc/inetd. conf and add the following line
Telnet stream tcp Nowait telnetd/usr/sbin/tcpd/usr/sbin/in. telnetd
3. Add the following content to sudo VI/etc/xinetd. conf:
# Simple configuration file for xinetd # Some ults, and include/etc/xinetd. d/defaults {# Please note that you need a log_type line to be able To uselog_on_success # And log_on_failure. the default is the following: # log_type = Syslog daemon infoinstances = 60log_type = syslog authprivlog_on_success = Host pidlog_on_failure = hostcps = 25 30} includedir/etc/xinetd. d
4. Add the following content to sudo VI/etc/xinetd. d/telnet:
# Default: On # Description: the telnet server serves Telnet sessions; it uses \ # unencrypted username/password pairs for authentication. service telnet {disable = noflags = reusesocket_type = streamwait = nouser = rootserver =/usr/sbin/in. telnetdlog_on_failure + = userid}
5. Restart the machine or restart the network service sudo/etc/init. d/xinetd restart
6. Use the Telnet client to remotely log on to non-root users.
Note: You may need the root permission to edit the conf file.
4. Telnet Windows 7 to Ubuntu
I use putty for telnet,Pay attention to the encoding problem.Otherwise, garbled characters are displayed in Chinese.
5. After completing the above work, You can telnet to Ubuntu