I'm sharing my internet in work and forgot to turn it off! Does anyone know how I can do it via the command line? I have SSH access but thats it. D'oh.
Turn Wifi Off via command line
internet-sharingNetworkSecurity
internet-sharingNetworkSecurity
I'm sharing my internet in work and forgot to turn it off! Does anyone know how I can do it via the command line? I have SSH access but thats it. D'oh.
Best Answer
You could use this to turn it off:
And if you want to get it back up, just type up, instead of down
Just make sure that en1 is the right interface or you can easily kill off your ssh access :)
P.S. As Lri noted in the comments below, you can quickly disable the correct network interface with just 1 line:
This will detect the correct Airport/wireless device and will turn it off