yum install openssh-server
vim /etc/ssh/sshd_config
#修改以下配置
Port 22
listenAddress 0.0.0.0
ListenAddress ::
PermitRootLogin yes
PasswordAuthentication yes
#重启
/bin/systemctl restart sshd.service
#检查
ps -e | grep sshd
netstat -an | grep 22
yum install openssh-server
vim /etc/ssh/sshd_config
#修改以下配置
Port 22
listenAddress 0.0.0.0
ListenAddress ::
PermitRootLogin yes
PasswordAuthentication yes
#重启
/bin/systemctl restart sshd.service
#检查
ps -e | grep sshd
netstat -an | grep 22