By using AWS re:Post, you agree to the Terms of Use
/How long does the one-time use SSH public key expire?/

How long does the one-time use SSH public key expire?


I'm interested in the recent feature .

The doc says there is a one-time use SSH public key that only remains 60 seconds.

But I tried it by self, looks like the one-time SSH public key always is valid after pushing it via cli. I can still use the corresponding private key to login the instance after pushing public key more than 10 minutes.

Is it expected behavior? How should I understand the one-time use SSH public key mentioned in doc?

asked 3 years ago0 views
1 Answers
Accepted Answer

I turned it out. EC2 instance connect works as expected to create one-time SSH public key for 60 times.

The behavior I observed caused by ssh-agent cached another key of ec2 instance.

answered 3 years 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