问题原文
原帖链接 · T. Brian Jones · CC BY-SA 3.0
I have an EC2 instance that is setup as an SFTP server using OpenSSH. It only allows connections on whitelisted IPs via TCP Port 22 (limited via an EC2 Security Group). I constantly have customers try to connect from other IPs that they have not been whitelisted. I'd like to track those attempted connections and the IPs they come from so I can help them figure out their IP addresses.
Is it possible to see these IP addresses from the server? Can I also see the connection attempt and get the SFTP username?
已采纳解答
原帖链接 · Siddharth sharma · CC BY-SA 3.0
AWS has a feature called VPC Flow Log that captures all the traffic coming to a VPC or a particular subnet or a particular network interface. You can setup VPC Flow log and these logs are then populated to AWS CloudWatch. It gives a very descriptive Log information and you can filter your query from that. Check more on AWS VPC Flow Log
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
