I also tested with mssh to make it works well:
When running ec2-instance-connect 1.1.14-0ubuntu1 (from Jammy) and trying to connect with mssh:
fabio@fabio-canonical:~/.aws$ mssh ubuntu@i-<ami_id> ubuntu@<ip>: Permission denied (publickey).
Due to the bug, we can see the key being pushed, but then the client denying the connection:
https://pastebin.ubuntu.com/p/7StqsfQdJp/
Back in the instance, I've changed the sources.list to point to kinetic repos and upgraded ec2-instance-connect to kinetic's version:
ubuntu@ip-10-0-1-226:~$ sudo apt-cache policy ec2-instance-connect ec2-instance-connect: Installed: 1.1.14-0ubuntu2 Candidate: 1.1.14-0ubuntu2 Version table: *** 1.1.14-0ubuntu2 500 500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status
And now mssh works fine:
fabio@fabio-canonical:~/.aws$ mssh ubuntu@i-<ami_id> Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1004-aws x86_64)
* Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage
System information as of Fri May 13 14:16:20 UTC 2022
System load: 0.2421875 Processes: 128 Usage of /: 21.1% of 7.58GB Users logged in: 1 Memory usage: 1% IPv4 address for eth0: 10.0.1.226 Swap usage: 0%
74 updates can be applied immediately. To see these additional updates run: apt list --upgradable
Last login: Fri May 13 13:47:05 2022 from <ip> ubuntu@ip-10-0-1-226:~$
I also tested with mssh to make it works well:
When running ec2-instance- connect 1.1.14-0ubuntu1 (from Jammy) and trying to connect with mssh:
fabio@fabio- canonical: ~/.aws$ mssh ubuntu@i-<ami_id>
ubuntu@<ip>: Permission denied (publickey).
Due to the bug, we can see the key being pushed, but then the client denying the connection:
https:/ /pastebin. ubuntu. com/p/7StqsfQdJ p/
Back in the instance, I've changed the sources.list to point to kinetic repos and upgraded ec2-instance- connect to kinetic's version:
ubuntu@ ip-10-0- 1-226:~ $ sudo apt-cache policy ec2-instance- connect connect: us-east- 1.ec2.archive. ubuntu. com/ubuntu kinetic/main amd64 Packages dpkg/status
ec2-instance-
Installed: 1.1.14-0ubuntu2
Candidate: 1.1.14-0ubuntu2
Version table:
*** 1.1.14-0ubuntu2 500
500 http://
100 /var/lib/
And now mssh works fine:
fabio@fabio- canonical: ~/.aws$ mssh ubuntu@i-<ami_id>
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1004-aws x86_64)
* Documentation: https:/ /help.ubuntu. com /landscape. canonical. com /ubuntu. com/advantage
* Management: https:/
* Support: https:/
System information as of Fri May 13 14:16:20 UTC 2022
System load: 0.2421875 Processes: 128
Usage of /: 21.1% of 7.58GB Users logged in: 1
Memory usage: 1% IPv4 address for eth0: 10.0.1.226
Swap usage: 0%
74 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
Last login: Fri May 13 13:47:05 2022 from <ip> ip-10-0- 1-226:~ $
ubuntu@