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

sshd 是如何在监听 22222 端口的?

  •  
  •   lander · Mar 16, 2021 · 1489 views
    This topic created in 1868 days ago, the information mentioned may be changed or developed.
    如题,centos 7.4 系统。
    netstat -antlp |grep sshd 发现是 sshd 在监听这个端口:
    tcp6 0 0 :::22222 :::* LISTEN 8247/sshd
    tcp6 0 0 :::22 :::* LISTEN 13609/sshd

    但是查看 /etc/ssh/sshd_config 里面并没有配置 22222 端口,连 22 端口都是注释掉的:
    ......
    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
    ......

    求教这是为何。。?
    3 replies    2021-03-17 13:07:45 +08:00
    dzdh
        1
    dzdh  
       Mar 16, 2021
    直接启动 sshd -p 2222
    lander
        2
    lander  
    OP
       Mar 16, 2021
    nevermind... docker 容器里的配置在生效的 忽略了这个
    ch2
        3
    ch2  
       Mar 17, 2021
    8247 是哪个进程你去找它问问
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1299 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:40 · PVG 07:40 · LAX 16:40 · JFK 19:40
    ♥ Do have faith in what you're doing.