查看是否安装ssh
rpm -qa | grep ssh

yum install openssh-server 安装ssh

开启ssh
service sshd start
netstat -ntpl | grep 22 查看端口是否打开

测试连接
ssh root@192.168.98.128(centos7IP)

centos7开启ssh 22端口
阅读 131
2022-04-03
rpm -qa | grep ssh

yum install openssh-server 安装ssh

service sshd start
netstat -ntpl | grep 22 查看端口是否打开

ssh root@192.168.98.128(centos7IP)

相关推荐
精彩评论(0)