开启网络
cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33
...
BOOTPROTO=dhcp
...
ONBOOT=yes
systemctl restart network
安装网络查看工具
yum search ifconfig
yum install net-tools.x86_64
开启ssh
yum install openssh-server
vim /etc/ssh/sshd_config
...
Port 22 #将改行前面的#键去掉,开启22端口
ListenAddress 0.0.0.0 #将改行前面的#键去掉
ListenAddress :: #将改行前面的#键去掉
...
PermitRootLogin yes #将改行前面的#键去掉 允许远程登录
...
PasswordAuthentication yes #将改行前面的#键去掉,这是开启用户名和密码登录
sudo service sshd start
netstat -an | grep 22
标签:...,改行,22,新机,配置,yum,linux,去掉,yes
From: https://www.cnblogs.com/wangjinkui/p/17300650.html