EC2: telnet one instance from another instance

0

Hi Guys,

I have 2 AWS Instance, I need to telnet Instance 1 to Instance 2, I have added security groups ICMP ALL Ports, but telnet error message getting: telnet: connect to address XX.XX.XX.XXX: Connection timed out

shagul
質問済み 2年前3295ビュー
4回答
1

It sounds like you don't have an ingress rule allowing TCP connections on the right port in any of the instance's (or ENI's) Security Groups. ICMP is a different IP protocol that allows software such as ping to work. But it would not allow a telnet session to work.

AWS
エキスパート
回答済み 2年前
0

Most linux distros do not come with telnet server installed. Have you verified the telnet server is running on the instance you want to telnet into? What linux are you using? I'm a bit confused as to which ports are open on "ICMP ALL Ports." Telnet runs on port 23 and is not ICMP traffic. Try adding port 23 to your security group's inbound rule.

Jackson
回答済み 2年前
0

Is there a specific purpose for trying to use Telnet?

It has been considered bad practice to use insecure protocols like Telnet for a long time now because they transmit plain text over the network. I found an AWS article from 2008 specifically recommending use of SSH over Telnet.

SSH is secure by design and comes pre-installed/running on nearly every flavour of Linux. Another advantage is the ability to use SSH Keys for authentication saving the need for/admin of passwords.

回答済み 2年前
0

Add an ingress TCP rule for the port you are trying to telnet into. For e.g. to telnet to port 8080, add TCP inbound 8080 to the Incoming Security Group of the server you're telneting into. Then from the source server type:

telnet <target server IP> 8080
Viper25
回答済み 2年前

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

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

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

関連するコンテンツ