how to give access to a linux server for a while

I want to give access to my linux server via IP but with a timer (for example, ip 190.53.53.53 can connect for 2 hours nothing more) than automatically the server up to ip