ssh开启,centOS7

1、先确定虚拟机是否装了openssh-server,执行 yum list installed |grep openssh-server 查看是否安装

bash 复制代码
[root@localhost ~]# yum list installed |grep openssh-server
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
openssh-server.x86_64                 7.4p1-21.el7                     @anaconda

这里显示已经安装,如果没有任何输出表示没有安装 , 执行 yum install openssh-server 命令安装

2、确定安装之后修改配置文件 vi /etc/ssh/sshd_config

按i ,进去编辑; 按esc键,然后输入 :wq ,编辑完毕


修改完配置保存

3、开启服务

systemctl start sshd.service

4、查看服务状态

systemctl status sshd.service

5.登陆

相关推荐
FlightYe12 分钟前
linux系统编程(八):阻塞与非阻塞IO对比
android·linux·运维·服务器·github·vim
淮北4941 小时前
ubuntu22 默认输入法调整频率
运维·服务器·git·ubuntu·elasticsearch
Percep_gan1 小时前
切割服务器日志
运维·服务器
骇客野人1 小时前
阿里云运维手册(通用生产版|云上运维标准化文档)
运维·阿里云·云计算
雾时之林2 小时前
Linux---计算机网络常见面试题
linux·运维·计算机网络
维核科技2 小时前
多卡集群频繁裂卡、通信报错?NVLink故障排查与运维优化方案
运维·服务器维修·gpu维修·算力卡维修·gpu故障·算力卡故障·服务器故障
Promise微笑2 小时前
红外热像仪选型:3~5μm中波与8~14μm长波探测机理解析
运维
承渊政道2 小时前
飞牛NAS部署Immich:搭建家庭相册并实现远程访问
运维·服务器·docker·内网穿透·cpolar·nas·immich
橘色的喵2 小时前
EventPool 32-bit 带标签 CAS 池:RT-Thread 单核 + Linux 双平台无锁
linux·运维·服务器
buhuizhiyuci3 小时前
【Linux 网络篇】数据的 “循环系统“:协议认识与网络传输的流程
linux·运维·服务器·网络·vscode