By using AWS re:Post, you agree to the AWS re:Post Terms of Use

ec2 instance, al2023 ver 2.3, have installed telnet-server.x86_64, THERE IS NO STARTUP SCRIPT

0

Have EC2 instance, al2023 ver 2.3, running database app that we usually interact with using Telnet. Have installed telnet-server.x86_64 on al2023, but can not find startup script/s or documentation on how to create startup script for a location like /etc/cloud/cloud.cfg.d/.

Looking for any documentation on telnet-server, which is listed in Amazon Linux 2023 release notes.

asked 23 days ago49 views
1 Answer
0

Hello, Greetings.

Thank you for reaching out. The main issue here seems to be that you have installed the telnet-server.x86_64 package on your Amazon Linux 2023 (AL2023) EC2 instance, but you cannot find the startup script to configure it during instance boot.

The telnet-server package in AL2023 does not come with a default startup script. You will need to manually create a startup script to start the telnet server when the instance boots up.

You can create a new file in the directory /etc/cloud/cloud.cfg.d/telnet-server.cfg, and add the necessary commands to start the telnet server.

  • The startup script should contain commands like systemctl enable telnet.socket and systemctl start telnet.socket to enable and start the telnet server service.
Take a backup in the form of snapshot or AMI before making any changes.

Example Script:

# cloud-init configuration to enable telnet service at boot
runcmd:
  - systemctl enable telnet.socket
  - systemctl start telnet.socket

Important Note: The Cloud-Init is designed primarily to run during the initial boot of a system, typically when the system is first launched or deployed, thus you would have to force Cloud-Init to run after the first boot using the following commands:

sudo cloud-init clean
sudo cloud-init init
reboot
AWS
answered 23 days ago

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