Unable to create SSH tunnel to EC2 instance

0

Hello, I'm trying to transfer files from my local machine to my EC2 instance, AWS recommends that I create a SSH tunnel to do so, I have been trying for the past 2 days and I'm still getting errors with this, please help. SSH Error

Nestdot
질문됨 일 년 전763회 조회
4개 답변
0

Hi,

Try below ssh -N -L SOURCE-PORT:127.0.0.1:DESTINATION-PORT -i KEYFILE xyz@SERVER-IP

If successful, the above command will create an SSH tunnel but will not display any output on the server console.

답변함 일 년 전
  • Where do I get source-port and destination-port from? Also, how do I make it detect my keyfile? (Since when I SSH initially into my instance I did cd Downloads in my command interface, since that's where I have my keyfile stored)

0

Stop Source / destination check in the instance use to jump.

답변함 일 년 전
  • What do you mean? Could you explain in more detail please

0

On EC2 Panel, select instance -> action -> networking -> Change Source / destination check

답변함 일 년 전
  • I click it and nothing happens

0

If you run tcpdump inside jump instance , can you see traffic? Check conectiviti from your jump to destination instance (security groups) enable ip forward on the jump instance - echo 1 > /proc/sys/net/ipv4/ip_forward

답변함 일 년 전
  • How do I run tcpdump inside jump instance? How do I do the other thing you said?

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

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

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

관련 콘텐츠