Install and create a Telnet server in Ubuntu

Source: Internet
Author: User
Install and create a Telnet server in Ubuntu

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.

Here, xinted and telnetd are two packages.

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, 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 the network service: sudo/etc/init. d/xinetd restart

You can use a non-root user to log on.

Of course, telnet is Ubuntu
It comes with a simple remote logon tool. 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
Because the default Ubuntu
Using the character set of the UTF-8, so putty needs to do some settings:

Choose windows on the left> appearance to Set Font settings, and click Change... to select .
Or the New Song dynasty. Choose windows on the left and set Character Set translation
UTF-8. Then, click open to connect to the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.