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.
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