搬瓦工centos7系统重启ssh命令

VPS新手教程搬瓦工centos7系统重启ssh命令已关闭评论阅读模式

最近一直使用centos7系统,虽然搬瓦工的ssh端口号已经修改掉了,不是默认的22,但是还是习惯性的再修改一次。以前修改完ssh以后,大都直接reboot一下。不过最近不那么干了,直接重启ssh,然后再打开一个putty测试一下修改是否成功。所以写这篇文章也算是帮自己记录一下命令。

centos7 ssh常用操作命令:文章源自搬瓦工-https://www.bwhcn.com/2681.html

重启SSH命令:文章源自搬瓦工-https://www.bwhcn.com/2681.html

systemctl restart sshd.service

启动SSH命令:文章源自搬瓦工-https://www.bwhcn.com/2681.html

systemctl start sshd.service

查看SSH状态命令:文章源自搬瓦工-https://www.bwhcn.com/2681.html

systemctl status sshd.service

SSH开机自启命令:文章源自搬瓦工-https://www.bwhcn.com/2681.html

systemctl enable sshd.service
文章源自搬瓦工-https://www.bwhcn.com/2681.html文章源自搬瓦工-https://www.bwhcn.com/2681.html
 
  • 本文由 admin 发表于 2020年12月13日 20:24:31
  • 转载请务必保留本文链接:https://www.bwhcn.com/2681.html