Connection to AWS Transfer SFTP: Connection reset by peer

0

How to connect to AWS Transfer SFTP endpoint from an EC2 instance? Currently from EC2, the connection is interrupted with Connection reset by peer message: sftp -i <privatekey> -v user@<endpoint>.server.transfer.ap-southeast-2.amazonaws.com OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: Connecting to <endpoint>.server.transfer.ap-southeast-2.amazonaws.com [ServerPrivateIp] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: key_load_public: No such file or directory debug1: identity file sftp_id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file sftp_id_rsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version AWS_SFTP_1.1 debug1: no match: AWS_SFTP_1.1 debug1: Authenticating to <endpoint>.server.transfer.ap-southeast-2.amazonaws.com:22 as 'user' debug1: SSH2_MSG_KEXINIT sent Connection closed by ServerPrivateIp port 22 Couldn't read packet: Connection reset by peer

질문됨 일 년 전795회 조회
1개 답변
0

From the client output provided, it seems you are able to establish a TCP connection and start the protocol negotiation though something is failing at the start of key exchange.

This could happen for a number of reasons but I'd first suggest checking the encryption algos/ciphers supported by the client vs what is configured in the security policy for the server or if you have logging configured for the server but the IAM role is not able to be assumed by the service.

https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html https://docs.aws.amazon.com/transfer/latest/userguide/monitoring.html#monitoring-enabling

If you are continuing to not be able to connect after this, I would recommend opening a case with support as more information regarding the server and client may be needed to troubleshoot.

AWS
Brian C
답변함 일 년 전

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

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

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

관련 콘텐츠