centos7.0 no netstat and ifconfig command issues

Source: Internet
Author: User

Original centos7.0 no netstat and ifconfig command issues

Yum Install wget

Running Yum install net-tools is OK.


The default CentOS already has OpenSSH installed, even if you are minimizing the installation. So there is no introduction to the installation of OpenSSH.

SSH configuration:

1. Modify the Vi/etc/ssh/sshd_config to remove and modify the parameter values according to the parameter annotations that the template will modify:

Port 22 Specifies the port number of the SSH connection, the default 22 port is not recommended for security

Protocol 2,1 allows SSH1 and SSH2 connections and is recommended to be set to Protocal 2

The other parameters are adjusted to suit your needs. Configuration method See: Man Ssh_config

2. Modify Etc/hosts.deny to add a line on the last side:

Sshd:all

3. Modify Etc/hosts.allow to add a line on the last side:

Sshd:all

If you want to install an IP that you can restrict access to, set the following:

Sshd:192.168.0.101

sshd:192.168.0.102

The above configuration indicates that only 101 and 102 of the servers are allowed SSH connections

4. Start SSH

Systemctl Restart Sshd.service

SSH is now ready to connect.

This article is from the "Wang Shengguo Pool" blog, make sure to keep this source http://wangsheng1.blog.51cto.com/29473/1548853

centos7.0 no netstat and ifconfig command issues

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.