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
質問済み 1年前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.

回答済み 1年前
  • 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.

回答済み 1年前
  • What do you mean? Could you explain in more detail please

0

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

回答済み 1年前
  • 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

回答済み 1年前
  • How do I run tcpdump inside jump instance? How do I do the other thing you said?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ