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
feita há um ano763 visualizações
4 Respostas
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.

respondido há um ano
  • 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.

respondido há um ano
  • What do you mean? Could you explain in more detail please

0

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

respondido há um ano
  • 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

respondido há um ano
  • How do I run tcpdump inside jump instance? How do I do the other thing you said?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas