How to Install and Uninstall ec2-instance-connect Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 17,2024

1. Install "ec2-instance-connect" package

Please follow the step by step instructions below to install ec2-instance-connect on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "ec2-instance-connect" package

Please follow the instructions below to uninstall ec2-instance-connect on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the ec2-instance-connect package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ec2-instance-connect
Architecture: all
Version: 1.1.12+dfsg1-0ubuntu3~16.04.2
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Daniel Anderson
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 55
Pre-Depends: adduser
Depends: ca-certificates, coreutils (>= 8.0), curl, openssh-server (>= 6.9.0), openssl, init-system-helpers (>= 1.18~)
Filename: pool/universe/e/ec2-instance-connect/ec2-instance-connect_1.1.12+dfsg1-0ubuntu3~16.04.2_all.deb
Size: 12694
MD5sum: ea988c4a044e1c70c836f2d54bc63027
SHA1: 6edf049d47e507865cb3740621077371e2e0e673
SHA256: 62d2dd7a4bcdfe14017643729caebe6a4120ebecdc71a52ed705387cbe7ffa7d
SHA512: 466421d15b6528faa091d42a11b0f96127d0a64fadfbe3da07a84fd35dede73322d1a1c8ac2de844bdbca7a99aefdac82ff8e862363795995292a72244189163
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