# 查看22端口号监听的IP地址
root@Tower:~# ss -tlunp |grep 22 |grep sshd
tcp   LISTEN 0      128                           100.96.210.210:22         0.0.0.0:*    users:(("sshd",pid=12713,fd=7))                                
tcp   LISTEN 0      128                           192.168.18.109:22         0.0.0.0:*    users:(("sshd",pid=12713,fd=8))                                
tcp   LISTEN 0      128               [fd7a:115c:a1e0::b01:ac75]:22            [::]:*    users:(("sshd",pid=12713,fd=6)) 

# 查看配置文件写入的监听地址
root@Tower:~# grep -E "^ListenAddress" /etc/ssh/sshd_config
ListenAddress 192.168.18.109 # br0
ListenAddress 100.96.210.210 # tailscale1
ListenAddress fd7a:115c:a1e0::b01:ac75 # tailscale1

# 放行所有ip
ListenAddress 0.0.0.0
ListenAddress ::

# 重启ssh服务
systemctl sshd restart