查看是否安装ssh rpm -qa | grep ssh yum install openssh-server 安装ssh 开启ssh service sshd start netstat -ntpl | grep 22 查看端口是否打开 设置自动开启 vi /etc/ssh/sshd_config 测试连接 ssh root@192.168.98.128(centos7IP)