- Newest
- Most votes
- Most comments
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
andsystemctl 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
Relevant content
- asked 7 months ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago