Connection logs for troubleshooting "target machine actively refused connection" on Transfer Family SFTP

0

I am trying to troubleshoot an SFTP connection: I'm getting the error message "target machine actively refused connection". Is there somewhere I can find server logs with details about why the connection was refused. The Cloudwatch logs for transfer family seem to start only after successful login.

Other connections seem to work fine, so it seems client related; Just trying to figure out what the client is doing that is causing the connection to be rejected.

sliu
질문됨 2년 전391회 조회
1개 답변
0

"target machine actively refused connection" usually indicates a port/firewall issue. Is the client coming from a different IP space than other connections. If you have a Security Group configured for a VPC server, it could cause what you are seeing. Also, double check this client is connecting to port 22.

AWS
답변함 2년 전
  • That doesn't seem likely to me. While troubleshooting, we set the security group to accept traffic from 0.0.0.0/0. In additional, from previous experience with security group issues, I would expect a timeout while establishing the connection, rather than the server rejecting it.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인