1.安装ssh yum install openssh-server 配置文件在 /etc/ssh/sshd_config,默认端口为22 2.将ssh服务添加到自启动列表中 systemctl enable sshd.service 3.启动ssh systemctl start sshd.service 4.查看端口是否运行 netstat -an | grep 22