准备:

先检查有没有安装ssh服务:rpm -qa | grep ssh

centos 7.5 开ssh服务

这里已经安装上。

如果没有安装的话,在终端中输入  yum list installed | grep openssh-server

通过输入  yum install openssh-server来安装

centos 7.5 开ssh服务

开启服务:

在/etc/ssh/ssh_config中,开启22端口(将文件中的#去掉)

centos 7.5 开ssh服务

开启服务:systemctl start sshd.service

检查是否开启服务:ps -e | grep sshd

检查是否开启端口:netstat -an | grep 22

centos 7.5 开ssh服务

远程登录,即可。远程登录工具可有多个选择(xshell、secureCRT等)

centos 7.5 开ssh服务

其他链接:虚拟机中使用vmnet8网段访问:https://blog.csdn.net/qq_36663951/article/details/79813038

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-06-18
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2022-01-20
  • 2021-05-16
  • 2021-12-08
  • 2022-01-05
  • 2021-08-03
相关资源
相似解决方案