How to Install and Uninstall ec2-instance-connect Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 17,2024

1. Install "ec2-instance-connect" package

Please follow the instructions below to install ec2-instance-connect on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install ec2-instance-connect

2. Uninstall "ec2-instance-connect" package

Please follow the guidelines below to uninstall ec2-instance-connect on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove ec2-instance-connect $ sudo apt autoclean && sudo apt autoremove

3. Information about the ec2-instance-connect package on Ubuntu 21.04 (Hirsute Hippo)

Package: ec2-instance-connect
Architecture: all
Version: 1.1.14-0ubuntu1
Priority: optional
Section: net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Daniel Anderson
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 56
Pre-Depends: adduser
Depends: ca-certificates, coreutils (>= 8.0), curl, openssh-server (>= 6.9.0), openssl
Filename: pool/main/e/ec2-instance-connect/ec2-instance-connect_1.1.14-0ubuntu1_all.deb
Size: 12924
MD5sum: bdc3e718f7d7ebeaab6a3e7a15cb3c9c
SHA1: 510d454c9d500e0485cf1cb29c27f029e526557a
SHA256: 90019746ee11934daa662c1b511a69620f1690546d032ab3343daafb74d61df0
SHA512: 736b28fb2ec0074661fb1b0a1ea199f3c4428dad5337cc6d066d92bae59fdb305f90298a42c7914c4ba788bc95b4a1bfdc4a72d952fa9fb40de7a36b25a5d451
Homepage: https://aws.amazon.com/
Description-en: Configures ssh daemon to accept EC2 Instance Connect ssh keys
EC2 Instance Connect is a service that publishes ssh keys for use by EC2
instances based on AWS Credentials. These keys are consumed by on-instance
configuration provided by this package. The ssh daemon will query EC2
Instance Metadata service for user-keys at ssh calltime, validate any if
present as well as validating their signature, and if all checks pass return
will include them in the authorized keys list.
.
In addition, there is an agent that harvests instance ssh host keys and
passes them back to the service. This is for authentication purposes by
the EC2 console to open an in-browser ssh terminal connection.
Description-md5: 4165e41ee22df85cadf5c0c02e2e3390