Install Telnet & ssh on scientific Linux

Source: Internet
Author: User

Scientific Linux 6.4 is installed, the preset is not telnet & SSH service, it has to be installed on its own, of course, this important service, installation can not be too difficult, the following sub-state installation procedures.

    • Telnet Service Installation
switch to root and execute the following command:
Yum Install Telnet telnet-server-y

To modify Telnet settings, execute the following command:

Vi/etc/xinetd.d/telnet

The contents are as follows: The red part is the one to be modified, and the yes is changed to No.

# default:on# description:the telnet Server serves Telnet sessions; It uses #       unencrypted Username/password pairs for authentication.service telnet{        no        flags           = Reuse        Socket_type     = Stream        Wait            = no        user            = root        Server          =/usr/sbin/ in.telnetd        log_on_failure  + = USERID}

You can then activate the Telnet service with the following instructions:

Service xinetd Start

This service is initiated, but the Telnet preset port 23 is not open yet, and other machines will not be telnet! Now you want to modify the fire wall setting.

Vi/etc/sysconfig/iptables

Edit Iptables, plus the red two lines.

# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:i Nput Accept [0:0]:forward Accept [0:0]:output Accept [0:0]-a input-m State--state established,related-j accept-a INPUT -P icmp-j accept-a input-i lo-j ACCEPT-A input-p udp-m State--state NEW--dport 23-j accept-a input-p tcp-m s Tate--state NEW--dport 23-j ACCEPT-A input-m State--state new-m tcp-p TCP--dport 22-j accept-a input-j reje CT--reject-with icmp-host-prohibited-a forward-j reject--reject-with icmp-host-prohibitedcommit

Then re-activate the fire wall service, so you can use it.

Service Iptables Restart

But, telnet because there is no encryption of the pass-through network packets, will be the people who have the evil to see the light, now most of the use of SSH, the following is how to install the SSH service.

    • SSH Service Installation

Switch to root and execute the following command:

Yum-y Install Openssh-server openssh-clients

So it's installed, and then you start the service.

Service sshd Start

 

Install Telnet & ssh on scientific Linux

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.