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
asked a year ago755 views
4 Answers
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.

answered a year ago
  • 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.

answered a year ago
  • What do you mean? Could you explain in more detail please

0

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

answered a year ago
  • 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

answered a year ago
  • How do I run tcpdump inside jump instance? How do I do the other thing you said?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions