Properly validate command associated with ssh key.