On Sep 8, 2012 4:13 AM, "Brian" <a...@cityscape.co.uk> wrote: > > On Fri 07 Sep 2012 at 16:04:51 -0500, Alex Robbins wrote: > > > I am looking to set up a custom SSH authentication system. I have a several > > RSA key pairs for my user, and I want to restrict ssh access based on which > > key pair is being used (not based on user name). On top of that, I want > > to restrict keys based on time of day. In short, a certain key can only be > > used at certain times, while another key works around the clock. > > Two files: one with two keys, one with a one key. Rotate with a cron job. >
You might be able to do this with sudo and use pam to restrict who / when to sudo ssh.