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
gefragt vor einem Jahr764 Aufrufe
4 Antworten
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.

beantwortet vor einem Jahr
  • 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.

beantwortet vor einem Jahr
  • What do you mean? Could you explain in more detail please

0

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

beantwortet vor einem Jahr
  • 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

beantwortet vor einem Jahr
  • How do I run tcpdump inside jump instance? How do I do the other thing you said?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen