I'm trying to free up port 22 for a docker container (that I'll have to run in another port mapping).
I'm running
netstat -a | grep 22
One of the results I'm getting is:
kctl 0 0 22 9 com.apple.netsrc
My question is: What is kctl running on port 22 on a mac?
"kctl" means that is a kernel control socket, not a network socket. This is a separate socket domain for local communication with kernel extensions (see Apple's developer documentation). Here's a partial display from my computer:
Summary: ignore it, it's not relevant to what you're trying to do.