Recently, I used an idle Ubuntu computer in the lab to create a telnet server for the lab to learn how to upload materials. Although it is very simple, I would like to summarize it and hope to help beginners. Open the shell window on the server and follow these steps: 1. execute the command: sudoapt-getintallxin
Recently, I used an idle Ubuntu computer in the lab to create a telnet server for the lab to learn how to upload materials. Although it is very simple, I would like to summarize it and hope to help beginners.
To open the shell window on the server, follow these steps:
1. execute the command: sudo apt-get intall xinted telnetd // install the telnet package. enter the current user password for the sudo command.
2. after the installation is successful, the system prompts accordingly. Run sudo vi/etc/inetd. conf // to open the telnet configuration file.
Note: some version vi commands cannot be used. you can install sudo apt-get install vim. first. Or use:
Sudo gedit/etc/inetd. conf can also enter the editing window.
3. in the editing window, add the following code to the red part, and save and close the editing window.
# Simple configuration file for xinetd
# Some ULTS ults, and include/etc/xinetd. d/
ULTS
{
# 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 (insert the red part)
Instances = 60
Log_type = SYSLOG authpriv
Log_on_success = HOST PID
Log_on_failure = HOST
Cps = 25 30
}
Includedir/etc/xinetd. d
4. run sudo vi/etc/xinetd. d/telnet to enter the edit window and add the following red part.
# Default: on
# Description: The telnet server serves telnet sessions; it uses
# Unencrypted username/password pairs for authentication.
Service telnet
{
Disable = no
Bind = 219.228.57.4
Only_from = 219.228.1.0/24
# The above two lines show that only intranet segments are provided!
Instance = UNLIMITED
Nice = 0
Flags = REUSE
Socket_type = stream
Wait = no
User = root
Server =/usr/sbin/in. telnetd
Log_on_failure + = USERID
}
5. restart: sudo restart
Or restart the network service: sudo/etc/init. d/xinetd restart
You can use a non-root user to log on.
Of course, telnet is a simple remote logon tool provided by Ubuntu. However, it is not very convenient to use. You can only perform some simple operation commands. It is more convenient to use putty software. The specific installation is as follows:
Sudo apt-get install openssh-server
Putty requires some settings because Ubuntu uses the character set of UTF-8 by default:
Choose Windows on the left> Appearance to set Font settings, and click Change... to select or. Click Windows-> Translation on the left to set Character set translation to UTF-8. Then, click Open to connect to the server.