最近一直使用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