下面整理经常用到管理SSH服务的命令,方便复制哈。

SSH服务状态

systemctl status sshd.service

SSH运行命令

service sshd start

SSH重启命令

service sshd restart

SSH停止命令

service sshd stop

SSH开机自动启动

chkconfig sshd on

SSH端口管理

查看使用什么端口

grep Port /etc/ssh/ssh_config

修改端口

vi /etc/ssh/ssh_config

SSH安装

yum install ssh

查看端口占用情况的命令

netstat -tnl

虽然比较简单,整理以上的命令主要为了方便大家复制啦。from:http://www.cnblogs.com/osfipin/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-11
  • 2021-09-18
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-12-06
  • 2022-02-05
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案