Print pattern regardless of space between

I have this content in file

sshd : ALL : allow
SSHD   :  all     : ALLOW
sshD  :  All  :       AllOW

What I need is to print the occurrence of "sshd:all" regardless of the spaces between them and if lower/upper case. So all lines should be printed in output when "grepped" or "printed using awk/sed"

grep -i '^sshd[^-_a-z0-9]*:[^-_a-z0-9]*all[^-_a-z0-9]*:[^-_a-z0-9]*allow'
1 Like

Thanks worked perfectly

grep -i '^[ \t]*sshd[ \t]*:[ \t]*all[ \t]*:' file