1.先检查有没有安装ssh服务:rpm -qa | grep ssh
2.如果没有安装ssh服务就安装 : yum install openssh-server
3.安装好后在ssh配置文件里进行配置: vim /etc/ssh/sshd_config
![]()
4.开启ssh服务:/bin/systemctl start sshd.service
5.检查一下22端口是否开启:netstat -an | grep 22
6.将ssh服务添加到自启动列表中:systemctl enable sshd.service
3633

被折叠的 条评论
为什么被折叠?



