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