contos8 ssh指定ip登录

vim /etc/ssh/sshd_config

AllowUsers [email protected]

重启ssh

SSH常用命令

#启动sshd服务

systemctl start sshd

#停止sshd服务

systemctl stop sshd

#重启sshd服务

systemctl restart sshd

#查看sshd服务的状态

systemctl status sshd

#sshd服务开机启动

systemctl enable sshd

#sshd服务禁止开机启动

systemctl disable sshd

#锁定sshd服务

systemctl mask sshd

#解锁sshd服务

systemctl unmask sshd

#重新加载sshd服务的配置文件

systemctl reload sshd

猜你喜欢

转载自blog.csdn.net/zongxingfengyun/article/details/126481328