The completion function for
ssh here is
You can see this with
complete -p ssh (it should also have been in your
grep output) though it appears to be auto-loaded and so will not show up until after you have used it once in that session.
Anyway, that being said you should just be able to hook
_ssh up to your function as well I would think.
complete -F _ssh myfunc