vi /etc/sshd/sshd_config

   

ListenAddress 0.0.0.0 

   

#修改为

   

ListenAddress 192.168.0.1

   

#代表只监听192.168.0.1的SSH请求,不监听该设备其他接口的SSH请求(多网卡、dummy0等地址)

   

配置后需要systemctl restart sshd

相关文章:

  • 2021-11-28
  • 2021-12-11
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
猜你喜欢
  • 2021-05-01
  • 2022-12-23
  • 2022-02-07
  • 2021-09-02
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案