Telnet Deployment and startup Windows&&linux

Source: Internet
Author: User

Telnet Deployment and startup Windows&&linux


First, Win7 The default is disable telnet Service (can be executed sequentially)

Restart the Telnet method as follows:

1, if you go directly to the Control Panel management tool in the service to find telnet , it is futile

, because the default does not have this service at all. Of course, you can do it in the following way. The control plane

"One", "Turn Windows features on or off", you can see many service items, select

"telnet server" and "telnet client" are OK. So you go back to "service items" or

you can see telnet in the services.msc.

2, through the "Control Panel"--"management tool" a "service" or "services.msc into the service item list

After that, If you find Telnet, you can see that it is disabled and you need to "disable" right -click "

"Disable" to "manual" and then start the status bar right-click to select "Start". Such

The telnet service on your machine starts.

Ii. installation of telnet under Linux : (one is server, one is client)

First determine if there is an installation telnet: The command is rpm-q telnet rpm-q telnet-server

[Email protected] software]# RPM-IVH--force xinetd-2.3.14-39.el6_4.x86_64.rpm

Warning:xinetd-2.3.14-39.el6_4.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey

Preparing ... ########################################### [100%]

1:XINETD ########################################### [100%]

[Email protected] software]# RPM-IVH--force telnet-server-0.17-48.el6.x86_64.rpm

Warning:telnet-server-0.17-48.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey

Preparing ... ########################################### [100%]

1:telnet-server ########################################### [100%]

[Email protected] software]# RPM-IVH--force telnet-0.17-48.el6.x86_64.rpm

Warning:telnet-0.17-48.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey

Preparing ... ########################################### [100%]

1:telnet ########################################### [100%]


To turn on the telnet service:

Method one:[email protected] cdrom]# chkconfig telnet on # Set to start the telnet service when booting the system

Method Two: Edit the file /etc/xinetd.d/telnet To change the statement disable = yes to disable = no to save the exit. Restart Services: service xinetd Restart

Activation Service:

Telnet is hung under the xinetd , so naturally just reactivating xinetd will be able to xinetd The settings are read in again, so the telnet You just set can be activated.

[[Email protected] cdrom]# service xinetd start

Start xinetd: [ OK ]

Testing Services:

C:\>telnet 192.168.19.130

Red Hat Enterprise Linux Server release 5.1 (tikanga)

Kernel 2.6.18-53.el5 on an i686

Login

Note that if you install the system, you need a firewall.

# iptables-f # Turn off the firewall

To remotely telnet to the server

the limit that Telnet cannot log in directly with root :

Login

Enter the user name rootin login:and enter the appropriate password, but return the login error message

Login Incorrect

This is because although the telnet service is turned on, Linux does not allow root to be telnet by default Log in, we Let the system allow root login by changing the/etc/securetty file

Change /etc/securetty to allow root to log in to the system

Look at the cat/etc/securettyfirst, the content of the file is roughly

Console

Vc/1

Vc/2

Vc/3

Vc/4

Vc/5

Vc/6

Vc/7

Vc/8

Vc/9

Vc/10

Vc/11

Tty1

Tty2

Tty3

Tty4

Tty5

Tty6

Tty7

Tty8

Tty9

Tty10

Tty11

We then use the following instructions to add content to this file

echo "pts/0" >>/etc/securetty

echo "PTS/1" >>/etc/securetty

cat/etc/securetty This file again, there will be two more lines in the back .

......

pts/0

Pts/1

At this point we can log in with root

Linux under launch telnet: Ctrl +] Q


This article is from the "7088733" blog, please be sure to keep this source http://7098733.blog.51cto.com/7088733/1782855

Telnet Deployment and startup Windows&&linux

Related Article

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.