On Tue, Apr 28, 2009 at 05:58:36PM +0100, Hari Sekhon wrote: > I am used to restricting remote ssh key commands in the auth keys file > but I have an instance where it would be necessary to define a very nice > tight regex to allow me to specify a command where only the IP address > changes and I cannot predict the IP address in advance. Write a wrapper script which accepts the IP address as a parameter, validates it against whatever criteria you need, then invokes the original command with the provided IP address (or aborts).