大网数据广告活动
服务器运维问答

Ubuntu - Failed logging attempts on blocked ports (SSH doesn't listen on those ports)

· 52CE 我爱测

I'm checking out the failed logging attempts of sshd. To my surprise, I see random ports and being processed by sshd. First, sshd doesn't even listen on those ports, why does sshd process those requests? Second, I have ufw enable…

问题原文

原帖链接 · user658091 · CC BY-SA 3.0

I'm checking out the failed logging attempts of sshd. To my surprise, I see random ports and being processed by sshd.

First, sshd doesn't even listen on those ports, why does sshd process those requests?

Second, I have ufw enabled (see screenshot). I tried to connect on the random ports but I'm getting a timeout as it should be (ports are blocked).

I don't consider myself an expert but... I thought I was covered. What is going on?

Distro and version: Ubuntu 14.04.5 LTS

UFW status:

auth.log:

已采纳解答

原帖链接 · Jakuje · CC BY-SA 3.0

To my surprise, I see random ports and being processed by sshd.

These are not sshd ports, but the client ports (each TCP connection has two ip and port pairs). The message clearly says

Failed ... from IP, port

There is nothing wrong on that. Clients just connect from random ports.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。