Ssh – How to you tell how old an ssh key is

keysssh

I'm connecting to a remote server, but want to make sure that they keys have been created relatively recently. How can I tell when the keys for that ssh server were generated?

If I can't check remotely, is there a way to use tools to check the server's keys age locally?

Best Answer

ls -l /etc/ssh/ssh_host* perhaps?

There is no guarantee that they aren't old though.