CentOS 7开启ssh服务进行远程管理

我们可以通过以下命令检查SSH服务有没有启动:

systemctl status sshd.service

通过上图我们可以看到ssh进程是处于活动状态


 

ssh进程的其它操作命令:

    • systemctl start sshd.service   #启动ssh服务
    • systemctl restart sshd.service         #重启ssh服务
    • systemctl enable sshd.service           #开机ssh自启
    • systemctl stop sshd.service   #关闭ssh服务

好了,现在可以通过secureCRT、xshell、putty等第三方工具连接了

posted @ 2021-06-25 10:06  凡是過往;皆為序章  阅读(270)  评论(0编辑  收藏  举报