V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zarte
V2EX  ›  问与答

关于 firewalld 远程设置的问题。

  •  
  •   zarte · Nov 27, 2018 · 944 views
    This topic created in 2708 days ago, the information mentioned may be changed or developed.

    远程连接需要改 ssh 的端口,在没运行服务的情况下要怎么添加?
    firewall-cmd --permanent --add-port= 这样是不行的。

    于是就要开启服务客户端自动断开,通过网页登录后台添加,再重新用客户端连接。

    1 replies    2018-11-27 12:19:14 +08:00
    boris1993
        1
    boris1993  
       Nov 27, 2018 via Android   ❤️ 1
    改 sshd_config 里配置的端口
    重启 sshd
    防火墙放行新端口
    打开另一个终端测试连接,不要关闭已有的这个连接

    另外如果你用的是安全组,那就去改安全组,不要动系统自带的防火墙
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:25 · PVG 06:25 · LAX 15:25 · JFK 18:25
    ♥ Do have faith in what you're doing.